Jumping between consecutive states in a stateflow chart

6 views (last 30 days)
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!

Answers (0)

Categories

Find more on Stateflow in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!