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
Dipanjan Das Roy
2021년 3월 17일
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
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!