Port and parameter mismatch

Description

Select the diagnostic action to take when loading or updating this model if Simulink® software detects a port or parameter mismatch between a Model block and its referenced model.

Category: Diagnostics

Settings

Default: none

none

Simulink software refreshes the Model block.

warning

Simulink software displays a warning and refreshes the Model block.

error

Simulink software displays an error message and does not refresh the Model block.

Tips

  • Port mismatches occur when the input and output ports of a Model block do not match the root-level input and output ports of the model it references.

  • Parameter mismatches occur when the parameter arguments recognized by the Model block do not match the parameter arguments declared by the referenced model.

  • Model block icons can display a message indicating port or parameter mismatches. To enable this feature, from the parent model, on the Debug tab, select Information Overlays > Ref Model I/O Mismatch.

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Related Topics