Hello,
I have some temporal conditions in system logic, for example:
if (a>10 for 10 sec)
then doSomething
else
returnToParentState
I implemented this using additional "detected" states, but this solution looks weird and unclear. (See picture below).
May be there is another way to do this?

 채택된 답변

Joachim Schlosser
Joachim Schlosser 2014년 11월 6일

1 개 추천

Try with a junction. You need that junction because a trigger can only be stated before the condition in one transition.

추가 답변 (0개)

카테고리

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

제품

질문:

2014년 11월 4일

답변:

2014년 11월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by