Main Content

Check usage of Relational Operator blocks

Check ID: mathworks.maab.jc_0131

Guideline: jc_0131: Usage of Relational Operator blocks


Check the position of Constant blocks used in Relational Operator blocks.

When the relational operator is used to compare a signal to a constant value, the constant input should be the second, lower input.

This check requires a Simulink® Check™ license.

Available with Simulink Check.

Check Parameterization

This check does not include sub-checks because the MAB modeling guideline provides only one sub ID.

For reference, the MAB guideline sub ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:

  • NA-MAAB — a

  • JMAAB — a

Results and Recommended Actions

ConditionRecommended Action
Relational Operator blocks have a Constant block on the first, upper input. Move the Constant block to the second, lower input.

Capabilities and Limitations

  • Runs on library models.

  • Analyzes content of library linked blocks. By default, the input parameter Follow links is set to on.

  • Analyzes content in masked subsystems that have no workspaces and no dialogs.

  • Allows exclusions of blocks and charts.