Getting information from a Simulink model to a Matlab GUI, when running in accelerator mode

1 view (last 30 days)
Howdy folks,
I have made a GUI that uses event listeners and callback functions to get information from certain blocks that I want to show in my GUI.
Unfortunately, when I run my Simulink model in accelerator mode, I learned that event listeners no longer work because the block's RTO does no longer exists in accelerator mode.
I also read about one work-around, which is to save off data to a text file, and then set up a timer to read the values from the text file in the GUI.
I am wondering if someone else has a more elegant solution than communicating between Simulink and GUI via text files?
Thanks
BG
  2 Comments
BG
BG on 23 Oct 2013
Ryan, thanks for your comment,
As explained in my question, I am using listeners such that (in normal mode), my GUI is being refreshed at regular time intervals while my model is running.
As a matter of fact, I do log signals also, using the "To Workspace" block, but this is only for post-run analysis. I don't have any issues with logging data.
What I need is information to stream from my Simulink model to a Matlab GUI while the model is running , and in accelerator mode.

Sign in to comment.

Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!