Main Content

Check for parentheses in Fcn block expressions

Check ID: mathworks.jmaab.jc_0622

Guideline: jc_0622: Usage of Fcn blocks


Checks the use of parentheses in Fcn block expressions. Parentheses must be used to define the operator precedence.

This check requires a Simulink® Check™ license.

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 — No recommendations

  • JMAAB — a

Results and Recommended Actions

ConditionRecommended Action
Improper usage of Fcn block expressions.Resolve the operator precedence in Fcn block expressions by adding parentheses.

Capabilities and Limitations

  • Runs on library models.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to graphical.

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

  • Does not allow exclusions of blocks and charts.