Main Content

Check for invalid root input and output port connections

Check ID: mathworks.hism.hisl_0079

Description

This check identifies invalid internal connections to the root-level ports of referenced models.

The invalid connections include:

  • A root output port block connects directly or indirectly to more than one nonvirtual block port.

  • A root output port block connects to a ground block.

  • The output port block connects to some elements of a block output.

  • An output port block connects more than once to the same element.

  • The signal that drives the root output port block is a test point.

  • The driving block has a constant sample time and multiple output ports, and one of the other output ports of the block is a test point.

  • The root output port is conditionally computed and a function prototype control or an encapsulated C++ target is used. The function prototype specification or C++ target specification states that the output variable corresponding to that root output port is returned by value.

  • A partial signal drives a root output port.

  • A bus element drives a root output port.

  • A noninlined S-function reads from a root input port in accelerator mode but not normal mode.

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
Noninline S-function reads from root input port.Insert a Signal Conversion block before the noninline S-function.
Invalid root output port connections.Insert a Signal Conversion block before the output port.

Capabilities and Limitations

  • Does not allow exclusions of blocks or charts.

  • Does not run on libraries.

See Also

hisl_0079: Connections to root input/output ports