Main Content

Execute-at-Initialization disabled in presence of input events

Diagnostic action to take when triggered charts are not set to run at initialization

Model Configuration Pane: Diagnostics

Description

The Execute-at-Initialization disabled in presence of input events parameter specifies the diagnostic action to take when Stateflow® detects triggered or enabled charts that are not running at initialization. When the chart does not execute at initialization, then the chart default transitions are processed at the first input event. Until then, any data that you initialize in the chart or active state data is not valid at time 0.

To initialize the chart configuration at time 0 rather than at the first input event, select the chart property Execute (enter) chart at initialization. For more information, see Execute (enter) chart at initialization (Stateflow).

Settings

warning (default) | none | error
none

No warning or error appears.

warning

A warning appears.

error

An error appears and stops the simulation.

Recommended Settings

ApplicationSetting
Debuggingerror
Traceability

No impact

Efficiency

No impact

Safety precautionerror

Programmatic Use

Parameter: SFExecutionAtInitializationDiag
Value: 'none' | 'warning' | 'error'
Default: 'warning'

Version History

Introduced in R2016b