Replaying external Stateflow models
2 次查看(过去 30 天)
显示 更早的评论
Given that I have a stateflow model from which I generate code to run on a standalone target,
Is it then possible to store the stateflow history (inputs/ outputs and the internal state) on the target during execution such that,
If I then transfer the stored history to my development computer, I can replay the stateflow model execution inside the original model
With features such as single stepping, data inspector, etc
I am asking because the documentation seems to show hardware in the loop debugging works well, and pure Stateflow simulations can be logged and replayed, but I couldn't find if this is posisble for the situation I mention
1 个评论
Benjamin Thompson
2022-2-4
Using Simulink Real Time with hardware that is supported by that product is probably your best chance to make things happen the way you describe. If you have more questions please list specific Mathworks products and hardware you are planning to use.
回答(1 个)
Nihal
2024-2-6
Yes, it is possible to store Stateflow history (inputs, outputs, and internal states) on a standalone target during execution. You can then transfer the stored history to your development computer and replay the Stateflow model execution with debugging features like single-stepping and using the Data Inspector. This process involves logging data on the target, retrieving it, and then replaying the execution within the Stateflow environment in MATLAB/Simulink. However, specific implementation details can vary based on the target hardware and the tools available.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!