No explicit final value for model arguments
Description
Select 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, Simulink® 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, Simulink displays
<from below>
to indicate that its value is provided by the last model to specify a value in the model hierarchy below.
At the command-line, 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.
Category: Diagnostics
Settings
Default:
none
none
If the topmost Model block uses the default value for a model argument, Simulink uses the last value specified in the model hierarchy below.
warning
If the topmost Model block uses the default value for a model argument, Simulink 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, Simulink displays an error message at compile time.
Command-Line Information
Parameter:
ModelReferenceNoExplicitFinalValueMsg |
Value:
'none' | 'warning' |
'error' |
Default:
'none' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |