Check for sample time setting
Guideline: jc_0641: Sample time setting
Checks if the sample time property of a block is set to -1 (inherited).
The check will not flag Enable and Trigger ports if they are inside a subsystem. This is as the sample time setting cannot be edited when they are inside subsystem. They will be flagged only if they are at the model root.
Following are the exceptions for this check:
Atomic subsystem (excluding conditional subsystems)
Blocks with state variables: Unit Delay, Delay, and Memory blocks
Signal conversion blocks: Rate Transition block
Function-Call Generator block
Blocks that do not have external inputs: Constant block
This check requires a Simulink® Check™ license.
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
|Sample time property of a block is not set to -1 (inherited).
|Change the sample time to -1 (inherited).
Capabilities and Limitations
Does not flag Enable and Trigger ports if they are inside a subsystem.
Allows use of the Auto-Fix option to update the sample time of flagged blocks to -1(inherited).
Runs on library models.
Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to
Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
Allows exclusions of blocks and charts.