Live Application with Simulink on TI C2000 to display parameter and plot figures

How do I update my GUI from Simulink data in a live application runnig on a TI c2000?
If I start my script in Matlab, it works just once and the Lamps are correctly updated in my GUI. The problem only occurs in the live application. To validate my simulink system I built a Software in the Loop and everything was fine (I got my live data with the help of event listeners). The first script in the modell callbacks built the GUI and the rto was created by post output and send to an interface script wich calculated everything and brought the variables back to the base workspace because the script to update the gui takes the variables from the base workspace. Howerver, in SiL everything works fine (it might be a little bit confusing because of all the scripts) but if the simulink modell is running on ti's c2000, the interface and update script will not operate automaticly, as they do in in the SiL. But if I press "run" in Matlab, they get all the parameter and variables, but like I said, just once and not continiusly. I allready tried to run the scipts with an while-loop, while loop and pause(x), two scripts wich are calling each other, but nothing works because it blocks the Workspace / whole programm and there is no update of the variables any more. I think I need something like a "handshake" between variables an dparameters are updated and run the script like it worked in the SiL by using the listener...
Thank you for your help!

Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Products

Asked:

on 2 Jul 2020

Community Treasure Hunt

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

Start Hunting!