Main Content

Check operator order of Product blocks

Check ID: mathworks.jmaab.jc_0610

Guideline: jc_0610: Operator order for multiplication and division block

Description

Checks the operator order of product blocks.

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

  • JMAAB — a, b

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0610_a: Check first input to Product blockImproper usage of operator order of Product blocks.Change the first input in Product block to multiplication('*').
jc_0610_b: Check number of inputs to Product blocks Product blocks have invalid number of inputs.Do not have more than two inputs for the Product blocks.

Capabilities and Limitations

  • Supports selection of Guideline Sub IDs.

  • 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.

  • Allows exclusions of blocks and charts.

Edit-Time Checking

This check is supported by edit-time checking.