Main Content

Invalid root Inport/Outport block connection

(Removed) Diagnostic action to take for invalid internal connections to root-level port blocks

Model Configuration Pane: Diagnostics / Model Referencing

The Invalid root Inport/Outport block connection diagnostic configuration parameter has been removed. (since R2024a) Use Model Advisor check hisl_0079 instead.

Description

The Invalid root Inport/Outport block connection configuration parameter determines the diagnostic action to take when internal connections to the root-level port blocks of this model are invalid.

By default, the software adds hidden blocks to satisfy the constraints wherever possible. In some cases, such as function-call feedback loops, automatically inserted hidden blocks may introduce delays that may change simulation results.

Auto-inserting hidden blocks to eliminate root input and output port problems stops at subsystem boundaries. You must manually modify models with subsystems that have invalid internal connections.

Set Configuration Parameter for Referenced Model

In a model reference hierarchy, how you open the Configuration Parameters dialog box determines whether you edit the configuration parameter for the top model in the current model hierarchy or the current referenced model.

  • Top model in the current model hierarchy — In the Simulink® Toolstrip, on the Modeling tab, click Model Settings.

  • Current referenced model — In the Simulink Toolstrip, on the Modeling tab, click the Model Settings button arrow. Then, in the Referenced Model section, select Model Settings.

Alternatively, open the referenced model as a top model. Then, in the Simulink Toolstrip, on the Modeling tab, click Model Settings.

Settings

none (default) | warning | error
none

The software silently inserts hidden blocks to satisfy the constraints wherever possible.

warning

The software warns you that a connection constraint has been violated and attempts to satisfy the constraint by inserting hidden blocks.

error

The software terminates the simulation or code generation and displays an error message.

Note

The software does not honor the none and warning settings for a referenced function-call model. The software reports all invalid root port connections as errors.

Examples

expand all

The types of invalid internal connections are:

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

    Outport block receives vector from Mux block that receives signals from two Gain blocks

  • A root output port block connects to a Ground block:

    Outport block receives signal from Ground block

  • Two root Outport blocks connect to the same block port.

    Outport blocks receive branched signal from Gain block

  • An Outport block connects to some elements of a block output and not others.

    Outport blocks receive elements of vector from Demux block

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

    Outport block receives vector from Mux block that receives two instances of branched signal from Gain block

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

    Outport block receives signal with 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.

    Outport blocks receive signals directly and indirectly from Complex to Magnitude-Angle block, and one of those signals has a test point

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

    Outport block in function-call subsystem receives signal from subsystem enabled by Stateflow chart

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Programmatic Use

Parameter: ModelReferenceIOMsg
Value: 'none' | 'warning' | 'error'
Default: 'none'

Version History

Introduced before R2006a

expand all

R2024a: Removed

The Invalid root Inport/Outport block connection diagnostic configuration parameter has been removed.

When internal connections to the root-level port blocks of a model are invalid, the software silently inserts hidden blocks to satisfy the constraints wherever possible. This behavior matches the previous default behavior.

To diagnose and fix invalid connections, use Model Advisor check mathworks.hism.hisl_0079 instead.