Stateflow: Using State as transition condition

Does anybody know if I can use a state condition in parallel chart as a condition for transition? For example, when state b is active in subchart 2, a transition from x to y will occur, as seen in the drawing below:

 채택된 답변

Sebastian Castro
Sebastian Castro 2015년 4월 17일

1 개 추천

There are "implicit events" in Stateflow that let you check whether you're in a state, or a state has just been entered. For example
enter(2.b)
in(2.b)
Look at this link, which explains implicit events in more detail.
- Sebastian

추가 답변 (1개)

moshe
moshe 2015년 4월 17일

0 개 추천

Thank You very much Sebastian!

카테고리

도움말 센터File Exchange에서 Decision Logic에 대해 자세히 알아보기

태그

질문:

2015년 4월 17일

답변:

2015년 4월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by