How to display the values of a Stateflow local data during simulation.
조회 수: 4 (최근 30일)
이전 댓글 표시
Good morning, I am writing this request to gather some information on how to monitor the behavior of a local Stateflow variable during simulation. Currently, the only method I have found is to convert it into an output and visualize it on a logic analyzer, but I believe this is a less efficient approach.
댓글 수: 0
답변 (1개)
Aquatris
2024년 2월 20일
Essentially you define the variable in your stateflow as a logged data (from Property Inspector), and when you run your simulation, it automatically sends the data to the matlab workspace. You then can see it via
myData = get(logsout,"myData");
myData.Values
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!