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
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
Respuestas (0)
Ver también
Categorías
Más información sobre Run on Target Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!