Main Content
Check usage of Relational Operator blocks
Check ID:
mathworks.hism.hisl_0017
Description
This check inspects the usage of blocks that compute relational operators, including Relational Operator, Compare To Constant, Compare To Zero and, Detect Change blocks.
Available with Simulink® Check™.
Results and Recommended Actions
Condition | Recommended Action |
---|---|
The model or subsystem contains a block computing a relational operator that is operating on different data types. The condition can lead to unpredictable results in the generated code. | For the identified blocks, use common data types as inputs. You can use Data Type Conversion blocks to change input data types. |
The model or subsystem contains a block computing a relational operator that does not have Boolean output. The condition can lead to unpredictable results in the generated code. | For the specified blocks, on the Block Parameters > Signal Attributes pane, set the Output data type to
boolean . |
Capabilities and Limitations
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