Check usable number for first index
Guideline: jc_0701: Usable number for first index
Identifies if the first index of arrays in Stateflow® is not set to either 0 or 1.
This check requires a Simulink® Check™ and Stateflow license.
This check contains sub-checks that correspond to the 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 — a1/a2
JMAAB — a1/a2
Sub-check jc_0701_a1 is selected by default.
Results and Recommended Actions
|Guideline Sub ID
|jc_0701_a1: Check if first index of Stateflow data is set to 0.
|One or more Stateflow data have first index set to a value other than 0.
|Make Sure to set the first index value to 0.
|jc_0701_a2: Check if first index of Stateflow data is set to 1.
|One or more Stateflow data have first index set to a value other than 1.
|Make Sure to set the first index value to 1.
Capabilities and Limitations
Supports selection of Guideline Sub IDs.
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 charts.