Main Content

Check if tunable block parameters are defined as named constants

Check ID: mathworks.jmaab.jc_0645

Guideline: jc_0645: Parameter definition for calibration

Description

Checks if tunable block parameters are defined as named constants.

Block parameters that are targets of calibration must be defined as named constants. These parameters are the exception:

  • Initial value when set to 0

  • Increment, decrement value when set to 1

  • Arithmetic expressions

Note

Literals are used for array indexing.

This table lists the Simulink® blocks and respective parameters supported:

BlocksSupported Parameters
BacklashBacklashWidth,InitialOutput
BiasBias
Combinatorial LogicTruthTable
ConstantValue
Dead ZoneLowerValue,UpperValue
DerivativeCoefficientInTFapproximation
Discrete-Time Integratorgainval,InitialCondition,UpperSaturationLimit,LowerSaturationLimit
GainGain
Hit CrossingHitCrossingOffset
Initial Condition (IC)Value
IntegratorInitialCondition,UpperSaturationLimit,LowerSaturationLimit,AbsoluteTolerance
n-D Lookup Table 
Magnitude-Angle to ComplexConstantPart
MemoryInitialCondition
Permute DimensionsOrder
QuantizerQuantizationInterval
Rate LimiterRisingSlewLimit,FallingSlewLimit,InitialCondition
Rate TransitionInitialCondition
Real-Imag to ComplexConstantPart
RelayOnSwitchValue,OffSwitchValue,OnOutputValue,OffOutputValue
SaturationUpperLimit,LowerLimit
SineAmplitude,Bias,Frequency,Phase,Samples,Offset
State-SpaceA,B,C,D,X0,AbsoluteTolerance
SwitchThreshold
Transport DelayDelayTime,InitialOutput,BufferSize,PadeOrder
Unit DelayInitialCondition

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 tunable block parameter values.Change the tunable block parameter literal values to named constants.

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.

  • Allows exclusions of blocks and charts.

Edit-Time Checking

This check is supported by edit-time checking.