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.
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
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |
Programmatic Use
Parameter:
ModelReferenceIOMsg |
Value:
'none' | 'warning' |
'error' |
Default:
'none' |