Detect loss of tunability
Description
Select the diagnostic action to take when an expression with tunable variables is reduced to its numerical equivalent in the generated code.
Category:Diagnostics
Settings
Default:warning
对GRT targets |error
for ERT targets
-
none
-
Take no action.
-
warning
-
Generate a warning.
-
error
-
Terminate simulation or code generation and generate an error.
Tips
This diagnostic applies only to named tunable parameters (parameters with a non-Auto storage class).
The default value forDetect loss of tunabilityfor ERT-based targets is
error
. When you switch from a system target file that is not ERT-based to one that is ERT-based,Detect loss of tunabilityis set toerror
. However, you can change the setting ofDetect loss of tunabilitylater.If a tunable workspace variable is modified by Mask Initialization code, or is used in an arithmetic expression with unsupported operators or functions, the expression is reduced to its numeric value and therefore cannot be tuned.
Command-Line Information
Parameter:ParameterTunabilityLossMsg |
Type:character vector |
Value:'none' |'warning' |'error' |
Default:'warning' 对GRT targets |'error' for ERT targets |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |