Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

GUI with the Real-Time Target

Asked by Fabrizio Schiano on 5 Feb 2013

Hi to all,

I searched a lot on the web before posting, but now I'm really sad because I don't reach to understand how to do what I have to do. :(

I'm simulating my system with the real-time target, but all you have to know is that I have a scope that displays me the position of an object in real-time. Everything is working so the model and its control are ok. Now the hardest thing is to display TOTALLY the same thing of the scope in the GUI. How can I do that? I was trying with the functions setappdata() and getappdata() but the error is this one: Function 'setappdata' is not supported for code generation. Consider using coder.extrinsic('setappdata') to bypass code generation.

I cannot use this functions in real-time :(

Can you help me pleasE?

Fab.

0 Comments

Fabrizio Schiano

Products

No products are associated with this question.

1 Answer

Answer by Ryan G on 5 Feb 2013

What is the real-time target? Real-time windows target, xPC or something else?

Are you trying to use get/setappdata in the Simulink model? You should use something like an event listener and have the gui update whenever an event (data update) occurs.

0 Comments

Ryan G

Contact us