Observe state variable in Simulink executable in real-time

1 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by