[Simulink] monitoring the realtime states of "chart"

Hi,
I am using "Chart" block in Simulink for simulating the state machine.
I want to monitor the state of each time through the simulation time.
Is there any function to monitor the state transitions of chart?
Best,

Réponses (2)

Anuj
Anuj le 10 Juil 2023
Modifié(e) : Anuj le 10 Juil 2023

1 vote

You can monitor the state during simulationin the symbols panel.
You can open symbols panel using following steps -->
  • In the State Chart toolbar option click on Add data drop down button.
  • click on show Symbols Panel.
Later during your execution you monitor the state value in right panel as shown in the image.

Catégories

Produits

Version

R2021a

Question posée :

le 30 Juin 2023

Réponse apportée :

le 13 Juil 2023

Community Treasure Hunt

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

Start Hunting!

Translated by