Statechart: Exit from a state to two states with same execution order.
Mostrar comentarios más antiguos
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 comentario
Dipanjan Das Roy
el 17 de Mzo. de 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
Respuestas (0)
Categorías
Más información sobre General Applications en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!