How to determine a Stateflow sequence?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Olivier NEYRET
el 27 de Abr. de 2021
Comentada: Olivier NEYRET
el 27 de Abr. de 2021
Hello,
I am working on Simulink using Stateflow and I have a request. I want to know if it is possible after the simulation of the model to know in which states and with which transitions the model have been runned. The goal is to know at the end of the simulation with transitions were used to reach the different states.
0 comentarios
Respuesta aceptada
Jonas
el 27 de Abr. de 2021
Editada: Jonas
el 27 de Abr. de 2021
In the Model Explorer, for your Stateflow chart, check 'Create output for monitoring: Child activity'. Simulink has now added another output port to your Stateflow chart. The data type will be an enumeration with your state names as values. You can add a Scope block and it will display the active state in time.
It is not possible to know which transition paths were used. You can for example have different transition paths between two states, but it will only display that 'a' transition from the one state to the other state has taken place.
I hope this at least may improve your troubleshooting of your Stateflow charts.
6 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Complex Logic en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!