Invalid root Inport/Outport block connection
(To be 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 will be removed in a future release. (since R2023b) A Model Advisor check will replace this configuration parameter.
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.
The software silently inserts hidden blocks to satisfy the constraints wherever possible.
The software warns you that a connection constraint has been violated and attempts to satisfy the constraint by inserting hidden blocks.
The software terminates the simulation or code generation and displays an error message.
The software does not honor the
warning settings for a referenced function-call model. The
software reports all invalid root port connections as errors.
Identify Invalid Internal Connections
The types of invalid internal connections are:
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:
Two root Outport blocks connect to the same block port.
An Outport block connects to some elements of a block output and not others.
An Outport block connects more than once to the same element.
The signal that drives the root output port block is a test point.
The output port block has a constant sample time, but the driving block has a non-constant sample time.
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 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.
Version HistoryIntroduced before R2006a
R2023b: To be removed
The Invalid root Inport/Outport block connection diagnostic configuration parameter will be removed and replaced with a Model Advisor check in a future release.