Filter löschen
Filter löschen

Replaying external Stateflow models

1 Ansicht (letzte 30 Tage)
Sanne Marx
Sanne Marx am 4 Feb. 2022
Beantwortet: Nihal am 6 Feb. 2024
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 Kommentar
Benjamin Thompson
Benjamin Thompson am 4 Feb. 2022
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Nihal
Nihal am 6 Feb. 2024
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.

Kategorien

Mehr zu Complex Logic finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by