Statechart: Exit from a state to two states with same execution order.

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

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

Sign in to comment.

Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Products

Release

R2014b

Asked:

on 4 Mar 2021

Commented:

on 17 Mar 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!