Main Content

Check usage of tunable parameters in blocks

Check ID: mathworks.maab.db_0110

Guideline: db_0110: Block parameters


Check whether tunable parameters specify expressions, data type conversions, or indexing operations.

To make a parameter tunable, you must enter the basic block without the use of MATLAB® calculations or scripting. For example, omit:

  • Expressions

  • Data type conversions

  • Selections of rows or columns

Supported blocks include:

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
Blocks have a tunable parameter that specifies an expression, data type conversion, or indexing operation. In each case, move the calculation outside of the block, for example, by performing the calculation with a series of Simulink blocks, or pre-compute the value as a new variable.

Capabilities and Limitations

  • Does not flag block parameters consisting of expressions with literals.

  • Runs on library models.

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

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

  • Does not evaluate mask parameters.

  • Allows exclusions of blocks and charts.