| Using Stateflow | Search  Help Desk |
Debugging State Inconsistencies
What Is a State Inconsistency?
Stateflow notations specify that states are consistent if:Causes of State Inconsistency
State inconsistency errors are most commonly caused by the omission of a default transition to a substate in superstates with XOR decomposition. Design errors in complex Stateflow diagrams can also result in state inconsistency errors. These errors may only be detectable using the Debugger at runtime.Detecting State Inconsistency
To detect the state inconsistency during a simulation: