Unexpected backtracking
Description
Select the diagnostic action to take when a chart junction has both of the following conditions. The junction:
Does not have an unconditional transition path to a state or a terminal junction
Has multiple transition paths leading to it
This chart configuration can lead to unwanted backtracking during simulation.
Category: Diagnostics
Settings
Default: error
none
No warning or error appears.
warning
A warning appears, with a link to examples of unwanted backtracking.
error
An error appears and stops the simulation.
Tip
To avoid unwanted backtracking, consider adding an unconditional transition from the chart junction to a terminal junction.
Command-Line Information
Parameter: SFUnexpectedBacktrackingDiag |
Value: 'none' | 'warning' | 'error' |
Default: 'error' |
Recommended Settings
Application | Setting |
---|---|
Debugging | warning |
Traceability | No impact |
Efficiency | No impact
(for simulation) No impact (for production code generation) |
Safety precaution | error |
Related Topics
- Model Configuration Parameters: Stateflow Diagnostics
- Best Practices for Creating Flow Charts (Stateflow)
- Backtrack in Flow Charts (Stateflow)
- Detect Modeling Errors During Edit Time (Stateflow)
- Unexpected backtracking (Stateflow)