Accessing MATLAB System workspace while running a Simulink model on external mode
2 次查看(过去 30 天)
显示 更早的评论
I'm working with a Raspberry Pi with an AudioInjector module and programming audio effects to run in real time on the device using Simulink.
I'm used to program in MATLAB where I can debug the code by setting breakpoints and checking the values of the variables that the program is working with at a given moment. But I don't see a way to do this while working on Simulink. This is my Simulink project.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/406390/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/406390/image.jpeg)
And I want to access the workspace that the MATLAB System (SchroederLR) is using so I can check the value of the variables. Given that I'm using the Raspberry input and output modules I need to run the simulation on external mode. Is there a way to do this? Thanks in advance.
0 个评论
回答(1 个)
Mark McBroom
2020-11-15
The best way to debug a Simulink model while it is running on the target system is to put the Simulink model in External mode and then place scopes and displays at different locations in the Simulink model to monitor internal signal values.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Run on Target Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!