Chart Properties
hisf_0001: State Machine Type
ID: Title | hisf_0001: State Machine Type | |
---|---|---|
Description | To create Stateflow® charts that implement consistent Stateflow semantics, use the same State Machine Type
(Classic , Mealy , or
Moore ) for all charts in
the model. | |
Note | In Mealy charts, actions are associated with transitions. In the Moore charts, actions are associated with states. In Classic charts, actions can be associated with both transition and states. At compile time, Stateflow verifies that the chart semantics comply with the formal definitions and rules of the selected type of state machine. If the chart semantics are not in compliance, the software provides a diagnostic message. | |
Rationale | Promote a clear modeling style. | |
Model Advisor Checks | Check state machine type of Stateflow charts (Simulink Check) | |
References |
| |
See Also |
| |
Last Changed | R2018b |
hisf_0011: Stateflow debugging settings
ID: Title | hisf_0011: Stateflow debugging settings | |
---|---|---|
Description | To protect against unreachable code and indeterminate execution time, | |
A | Set configuration parameters Wrap on overflow
and Simulation range checking to
In the model, open the Debug tab and select Diagnostics > Detect Cyclical Behavior | |
B | Right-click on each truth table in the model and select
Properties. Set these parameters to
| |
Notes | Run-time diagnostics are only triggered during simulation. If the error condition is not reached during simulation, the error message is not triggered for code generation. | |
Rationale | A, B | Protect against unreachable code and unpredictable execution time. |
Model Advisor Checks | Check Stateflow debugging options (Simulink Check) | |
References |
| |
See Also | Specify Properties of Truth Table Functions (Stateflow) | |
Last Changed | R2024a |