MATLAB: Exit state transition issue in stateflow 6.0

stateflowstateflow diagram

Hi, I am using stateflow 6.0 designing a simple stateflow with one OFF state and ON state.Default transition is to the OFF state.When the simulation begins, in the first time sample the OFF state is enabled but at this time eventhough the exit condition for the OFF state is TRUE the execution doesnt shift to ON state,instead it goes to ON state on the next execution cycle only.
Can anybody clarify me on this please?

Best Answer

You may want to have a read of Stateflow Chart Semantics in the documentation. Enabling Super Step Semantics might allow you to perform the exit of the OFF state in the first time step.
HTH,
Arnaud