Using Stateflow     Search    Help Desk 

Debugging State Inconsistencies

What Is a State Inconsistency?

Stateflow notations specify that states are consistent if:

A state inconsistency error has occured, if after a Stateflow diagram completes an update, the diagram violates any these notation rules.

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:



[ Previous | Help Desk | Next ]