Replaying external Stateflow models

조회 수: 20 (최근 30일)
Sanne Marx
Sanne Marx 2022년 2월 4일
답변: Hornett 2024년 2월 6일
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
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개)

Hornett
Hornett 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.

카테고리

Help CenterFile Exchange에서 Diagnostics에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by