Azzera filtri
Azzera filtri

Replaying external Stateflow models

1 visualizzazione (ultimi 30 giorni)
Sanne Marx
Sanne Marx il 4 Feb 2022
Risposto: Nihal il 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 Commento
Benjamin Thompson
Benjamin Thompson il 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.

Accedi per commentare.

Risposte (1)

Nihal
Nihal il 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.

Categorie

Scopri di più su Complex Logic in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by