Can we skip states execution in a stateflow diagram?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Luis Ruiz
le 22 Août 2023
Modifié(e) : Walter Roberson
le 23 Août 2023
I have a state flow diagram, is it possible to skip the execution of states if the conditions are met?
As shown in this figure, if b>=3 STATE4 is reached.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1461977/image.png)
If b>=3 I execute STATE1, 2 and 3 at least for 1 time step each. But is there a way to go all the way to STATE4 without executing the previous states?
I managed to do it using several entry arrows but i think that is not convenient for large stateflows, also if I am in STATE2 I would like to reach STATE4 without executing STATE3.
Is there some kind of configuration in the stateflow that allows for states to be skipped if the conditions are met?
0 commentaires
Réponse acceptée
Angelo Yeo
le 23 Août 2023
Modifié(e) : Walter Roberson
le 23 Août 2023
Super-step semantics should be what you are asking for. In effect this will skip the during of a state entered and all possible transitions availble in the same times. See the doc below for further details.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Complex Logic dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!