Statechart: Exit from a state to two states with same execution order.
Afficher commentaires plus anciens
I have to design a state chart in which after certain timeout an exit condition causes an exit to two states with same priority. First exit is to other state with same parent state and the other state is exit to other superstate.
Design uses this c - code:
if (TimedOut(TimerCount, DeblockTimeout))
{
Demand1 = 0;
Rate1 = 10;
StateDeb = DEB_IDLE; // first exit
StateMP = MP_DEMAND; // second exit
}
1 commentaire
Dipanjan Das Roy
le 17 Mar 2021
Hi,
If I understood correctly on exit of a state you want to execute two states simultaneously. If that is the case, you can follow the intrustions given in this documentation page on how to achieve parallelism.
If it does not solve your problem, please clarify your workflow a bit more to better understand your situation.
Thanks,
Dipanjan
Réponses (0)
Catégories
En savoir plus sur General Applications dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!