No explicit final value for model arguments
Diagnostic action to take for model argument with default value at top-level model reference
Since R2020b
Model Configuration Pane: Diagnostics / Model Referencing
Description
The No explicit final value for model arguments configuration parameter determines the diagnostic action to take when the topmost Model block that can set the value for a model argument uses a default value instead of providing an explicit value.
In the Model Data Editor, Property Inspector, or Model Explorer, the default value for a
model argument displays as either <inherited>
or <from
below>
.
If the Argument check box is selected, the software displays
<inherited>
to indicate that, in the case that a model references the Model block, the model argument value is provided by the parent.If the Argument check box is cleared, the software displays
<from below>
to indicate that its value is provided by the last model to specify a value in the model hierarchy below.
In the MATLAB® Command Window, a default value for a model argument is represented by an empty string.
The value of this configuration parameter in the top model applies to each model argument in the model hierarchy.
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
Default:
none
If the topmost Model block uses the default value for a model argument, the software uses the last value specified in the model hierarchy below.
warning
If the topmost Model block uses the default value for a model argument, the software uses the last value specified in the model hierarchy below, but displays a warning that the model argument does not have an explicit final value.
error
If the topmost Model block uses a default value for a model argument, the software displays an error message at compile time.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |
Programmatic Use
Parameter:
ModelReferenceNoExplicitFinalValueMsg |
Value:
'none' | 'warning' |
'error' |
Default:
'none' |
Version History
Introduced in R2020b