Check data type of loop control variables
Check ID:
mathworks.hism.hisl_0102
Description
This check identifies loop control variables using non-integer data types on the following:
For iterator blocks.
For loops in MATLAB function blocks.
Available with Simulink® Check™.
Results and Recommended Actions
Condition | Recommended Action |
---|---|
One or more For Iterator blocks are using non-integer data type for loop control counter variable. | Set the data type of loop control counter variable to an integer data type. |
One or more For loops are using non-integer data type for loop control counter variable in MATLAB Function blocks. | Set the data type of loop control counter variable to an integer data type. |
Capabilities and Limitations
This check does not look at loop control variables inside Stateflow charts.
Does not run on library models.
Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to
on
.Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
all
.Allows exclusions of blocks and charts.
See Also