Effacer les filtres
Effacer les filtres

Replaying external Stateflow models

1 vue (au cours des 30 derniers jours)
Sanne Marx
Sanne Marx le 4 Fév 2022
Réponse apportée : Nihal le 6 Fév 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 commentaire
Benjamin Thompson
Benjamin Thompson le 4 Fév 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.

Connectez-vous pour commenter.

Réponses (1)

Nihal
Nihal le 6 Fév 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.

Catégories

En savoir plus sur Complex Logic dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by