Effacer les filtres
Effacer les filtres

Stateflow: Resetting tick upon state transition

1 vue (au cours des 30 derniers jours)
Macko
Macko le 25 Juil 2012
Hi,
Is there a way to reset the tick value in the entry hook of a state, in Stateflow?
I have two states, A and B. In state B, I'm doing an action 50 ticks after the state has been entered. However, in the generated code, the tick counter is incremented no matter what the state is so I can enter state B with a random value of the tick counter therefore not respecting the 50 cycles.
I know, I can (and probably should) implement my own cycle counter but I was wondering whether there is a more elegant way to do that.
Many thanks in advance!

Réponses (0)

Catégories

En savoir plus sur Stateflow 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!

Translated by