Main Content

Check usage of Sum blocks

Check ID: mathworks.jmaab.jc_0121

Guideline: jc_0121: Usage of add and subtraction blocks

Description

Identifies the violations of the guideline found with the usage of the Sum block.

This check requires a Simulink® Check™ license.

Check Parameterization

This check contains sub-checks that correspond to sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.

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, b, c

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0121_a: Check shape of Sum blockOne or more Sum blocks are "round" shaped but are not part of a feedback loop.Set the shape of Sum block to "rectangular".
jc_0121_b: Check first input of Sum blockOne or more Sum blocks don't have '+' sign as first input and are not part of a feedback loop.Set first input to Sum block to '+' sign.
jc_0121_c: Check number of inputs for Sum blockOne or more Sum blocks have more than two inputs.Set Sum block to have no more than two inputs.

Capabilities and Limitations

  • Runs on library models.

  • Supports exclusions of blocks or charts.

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

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