stateflow control stuck in the default block
6 views (last 30 days)
Mauro Fusco on 13 Jun 2019
Edited: Mauro Fusco on 13 Jun 2019
Looking at your flow chart, once that the superstate "addition" is reached (when this happens you can see blue border, as in your picture), then the Init state is accessed, as it has a default transition pointing to it. There are no transitions that go out of the init state, therefore it is normal that you observe no change of state.
In other words, your model contains a "deadlock". You need to add transitions that have origin in your init state and point towards other states if you want to get out of init. On the transitions you can add conditions using square brackets, to control when the init state is exited.
I hope this helps, maybe a good idea is to follow first these tutorials: