I fixed the problem by copying and pasting the model saved with an older version of Simulink into a blank Simulink 2021b model.
Simulink scope doesn't display Raspberry Pi results
2 次查看(过去 30 天)
显示 更早的评论
Dear Colleagues,
I am running a Simulink model, of my own creation, on a Raspberry Pi (3 B+) target. For some reason I cannot get the results of the simulation to display in "real-time" on the Simulink scope. This is what I have done so far:
- I compared the Hardware Implementation and Code Generation settings of my model to those of the MathWorks raspberrypi_mafilelogging.slx demo and, for what I can tell, they were all the same.
- I checked the InitFcn and the other callbacks in the raspberrypi_mafilelogging.slx model and they were empty.
- I issued set_param('v0_raspberry','ExtModeAutoUpdateStatusClock','on') in the MATLAB command window before I ran my model and I was able to see the elapsed time bar and cofirm that the elf has run on the Raspberry Pi. Moreover, I checked the data in the mat file that the model wrote to the Raspberri Pi and it looked as expected.
- I spent quite a bit of time reading MathWorks help files and documentation without much success =(
So I have a couple of questions for the community before MathWorks tech support comes back online:
- What is the setting in raspberrypi_mafilelogging.slx that allows the elapsed time bar to be updated from the Raspberry Pi target without setting the 'ExtModeAutoUpdateStatusClock' at the command line?
- What are the settings that allow the Simulink scope display to update with results from the Raspberry Pi elf?
Thank you!
B
回答(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!