Detect loss of tunability
Select the diagnostic action to take when an expression with tunable variables is reduced to its numerical equivalent in the generated code.
GRT targets |
error for ERT targets
Take no action.
Generate a warning.
Terminate simulation or code generation and generate an error.
This diagnostic applies only to the following:
Simulink.Parameterobjects that have a non-
Simulink.Parameterobjects that have the
Autostorage class and are mapped to a non-
MATLAB® variables that you map to a non-
When the model configuration parameter Default parameter behavior (Simulink Coder) is set to
Tunablethis diagnostic does not apply to variables with
The default value for Detect loss of tunability for 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 tunability is set to
error. However, you can change the setting of Detect loss of tunability later.
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.
|Type: character vector|
Default parameter behavior (Simulink Coder)