Main Content

Invalid input data access in chart initialization

Description

Select the diagnostic action to take when a chart:

  • Has the ExecuteAtInitialization property set to true

  • Accesses input data on a default transition or associated state entry actions, which execute at chart initialization

In this chart configuration, blocks that connect to chart input ports might not initialize their outputs during initialization. To locate this configuration in your model and correct it, use this diagnostic.

When using Embedded Coder® for a component model configured with a service interface, this parameter is not relevant and, therefore, is not supported.

Category: Diagnostics

Settings

Default: warning

none

No warning or error appears.

warning

A warning appears.

error

An error appears and stops the simulation.

Tip

In charts that do not contain states, the ExecuteAtInitialization property has no effect.

Command-Line Information

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

Recommended Settings

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

Related Topics