Check for inconsistent vector indexing methods
Check ID:
mathworks.hism.hisl_0021
Identify blocks with inconsistent indexing method.
Description
Using inconsistent block indexing methods can result in modeling errors. You should use a consistent vector indexing method for all blocks. The indexing methods are zero-based, one-based or user-specified.
Blocks that support configurable indexing:
Blocks that support only one-based indexing:
Fcn (deprecated)
State Transition Table (Stateflow) with MATLAB action language
Test Sequence (Simulink Test)
Stateflow chart with MATLAB action language
Truth Table function with MATLAB action language
Blocks that supports only zero-based indexing:
Stateflow chart with C action language
Truth Table function with C action language
State Transition Table (Stateflow) with C action language
Available with Simulink® Check™.
Results and Recommended Actions
Condition | Recommended Action |
---|---|
The model or subsystem contains blocks with inconsistent indexing methods. The indexing methods are zero-based, one-based or user-specified. | Modify the model to use a single consistent indexing method. |
Capabilities and Limitations
Runs on library models.
Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
all
.Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to
on
.Allows exclusions of blocks and charts.
See Also