Jumping between consecutive states in a stateflow chart

조회 수: 6 (최근 30일)
Hendrik Lorenz
Hendrik Lorenz 2018년 8월 27일
Hey all,
I want to implement a user decision support system in stateflow where the user is asked a sequence of questions and based on his answers the system moves to a new state asking new questions or advising actions to be taken. If the user is not able to do advised actions immediately he can save them on a To-Do-List and continue in the chart. If he executes the saved action later on he can confirm the execution in the to-do-list and I want the system to jump back to the state, where the user put the action on the to-do list, to execute subsequent actions. So what I am looking for is a native feature/architecture of stateflow that allows to jump between states of a chart. I only want to execute one state at a time so nothing parallel is needed imo, but I want to be able to relatively flexibly jump between (normally consecutive) states. Additionally I also need to jump back to the state that I came from in the first place after the subsequent actions are done. I implemented this feature using messages and a "jumper" state that is connected to every state that I want to jump from and to. However, I was wondering if that is the most effective way to do it. Any input is appreciated!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Stateflow에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by