Main Content

Check usage of Assignment blocks

Check ID: mathworks.hism.hisl_0029

Identify Assignment blocks whose array fields are not initialized.

Description

This check inspects the usage of the Assignment blocks.

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
The model or subsystem contains Assignment blocks with incomplete array initialization (not in the iterator subsystem) and the block parameter Action if any output element is not assigned is not set to Error.

Set block parameter Action if any output element is not assigned to Error.

The model or subsystem contains Assignment blocks in the iterator subsystem and the block parameter Action if any output element is not assigned is not set to Error.For the listed Assignment blocks in iterator subsystems, output arrays with size greater than the iteration limit are not fully initialized. Therefore, set the block parameter Action if any output element is not assigned to Error.

Capabilities and Limitations

  • Does not run on library models.

  • Analyzes content of library linked blocks.

  • Analyzes content in all masked subsystems.

  • Allows exclusions of blocks and charts.

See Also