Main Content

Invalid input data access in chart initialization

Diagnostic action to take when invalid input data access in chart initialization is detected

Model Configuration Pane: Diagnostics


The Invalid input data access in chart initialization parameter specifies 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.

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


warning (default) | none | error

No warning or error appears.


A warning appears.


An error appears and stops the simulation.

Recommended Settings

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

Programmatic Use

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

Version History

Introduced in R2010a