Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

event listener works on simulation but won't work on RTW

1 Ansicht (letzte 30 Tage)
Eyad
Eyad am 28 Aug. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi I'm trying to make a GUI to control a model on a RTW ,I made the GUI with GUIDE and set the strartfcn of the model to "localAddEventListener" , the model and GUI works perfectly on simulation but when I build it on XPC target box and try to press connect it gives me an error saying that it can't find the function "localAddEventListener" can you please help me with that
  2 Kommentare
Kaustubha Govind
Kaustubha Govind am 29 Aug. 2012
I would expect that the event listeners wouldn't get invoked at all on the xPC Target, so I'm surprised that you're even seeing the error. I would suggest contacting MathWorks Tech Support if you don't see a response here.
Eyad
Eyad am 2 Sep. 2012
I removed the function "localAddEventListener" from the callback of the model's startfcn and added it through the GUI after building and connecting the model to the XPC ,the simulation worked perfectly , but when i tried to run it on the XPC it didn't show an error but no data was displayed , as you said the event listeners probably weren't invoked on the XPC, what do you think caused that ? and how do I solve it ?

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by