Stateflow: Using State as transition condition
조회 수: 1 (최근 30일)
이전 댓글 표시
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149165/image.jpeg)
댓글 수: 0
채택된 답변
Sebastian Castro
2015년 4월 17일
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)
- Sebastian
댓글 수: 0
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!