Statechart: Exit from a state to two states with same execution order.
Show older comments
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 Comment
Dipanjan Das Roy
on 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
Answers (0)
Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!