MATLAB App GUI bogging down and not streaming Real-Time data when deployed
Show older comments
Hello,
I am trying to stream data from a Simulink real-time simulation running on a Speedgoat to a MATLAB App GUI numerical display. I am encountering two issues that I have not been able to resolve:
- While running and streaming data, the GUI begins to bog down, with the numerical display refreshes occuing progessively slower and slower. After ~10 minutes of running it is almost unusable it is so bogged down. I've monitored the task manager while running a simulation and observed a fairly large amount of data being received by the Speedgoat target machine and my local memory filling up. I'm guessing this is why it is bogging down, however I do not know how to resolve it. The general code structure I am using is:
app.Instrument = slrealtime.Instrument;
app.Instrument.connectScalar(app.numericalDisplay,'signal_to_monitor');
app.InstrumentManager = slrealtime.ui.tool.InstrumentManager(app.UIFigure, 'TargetSource', app.TargetSelector);
app.InstrumentManager.Instruments = app.Instrument;
2. The second issue I'm running into is when deploying the application using applicationCompiler or mcc, the data does not stream to the numerical displays at all. I'm guessing it's related to line 3 above, however the documentation is lacking information on the correct syntax needed for how to assign what target machine to connect the InstrumentManager to. I've tried updating the 'TargetSource' to the IP address with no luck.
Any help would be greatly appreciated. Thanks!
Answers (0)
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!