Main Content

Check usage of variant blocks

Check ID: mathworks.hism.hisl_0023

Check variant block parameters for settings that might result in code that does not trace to requirements.

Description

This check verifies that variant block parameters for code generation are set to trace to requirements.

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
The option to generate preprocessor conditionals is selected in one or more variant blocks in the model.In order to simplify the tracing of code to requirements, consider clearing the option to generate preprocessor conditionals in variant blocks.

Capabilities and Limitations

  • Does not run on library models.

  • Analyzes content of library linked blocks.

  • Analyzes content in masked subsystems.

  • Does not allow exclusions of blocks or charts.

See Also