Parameter Writer block validation
Option to enable parameter validation globally or locally
Since R2023a
Model Configuration Pane: Diagnostics / Data Validity
Description
The Parameter Writer block validation parameter specifies whether the model enables parameter validation globally or locally for Parameter Writer blocks. Normal mode simulations run faster for models that disable parameter validation for Parameter Writer blocks.
Dependencies
To disable parameter validation for Parameter Writer blocks, the blocks must not directly or indirectly change the values of Model block instance parameters. For example, a Parameter Writer block must not change the value of a model workspace variable or mask parameter that specifies the value of a Model block instance parameter.
Settings
Use local settings
(default) | Enable all
| Disable all
Use local settings
The software enables or disables parameter validation for each Parameter Writer block in the model based on the setting of the Validate parameter parameter for each block.
When Validate parameter is selected for a block, parameter validation is enabled.
When Validate parameter is cleared for a block, parameter validation is disabled.
Enable all
The software enables parameter validation for all Parameter Writer blocks in the model, regardless of the settings of their Validate parameter parameters.
Disable all
The software disables parameter validation for all Parameter Writer blocks in the model, regardless of the settings of their Validate parameter parameters.
Recommended Settings
Application | Setting |
---|---|
Debugging | No recommendation. |
Traceability | No recommendation. |
Efficiency | For normal mode simulation, Disable all . |
Safety precaution | No recommendation. |
Programmatic Use
Parameter:
ParamWriterValidationControl |
Type: string | character vector |
Values:
"uselocalsettings" | "enableall" |
"disableall" |
Default:
"uselocalsettings" |
Version History
Introduced in R2023a