Main Content

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

ApplicationSetting
Debuggingwarning
TraceabilityNo impact
EfficiencyNo impact (for simulation)
No impact (for production code generation)
Safety precautionerror

Related Topics