Observe state variable in Simulink executable in real-time
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a Simulink model which I compile and deploy onto a Raspberry Pi. I would like to access/observe a state variable in the model while the executable is running i.e. in real-time. Any suggestions on how I can do this?
One idea would be to continuously write the variable to a text file from within the executable, and subsequently read the file from the outside e.g. by means of a Python script - but I'm sure there is a more elegant solution.
Finally, I considered writing to a specific memory address from within the executable, and reading from this address from the outside, but that would be quite error prone I suppose.
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!