Main Content

Parameter Writer block validation

Globally or locally enable parameter validation

Since R2023a

Model Configuration Pane: Diagnostics / Data Validity

Description

Globally or locally enable parameter validation for Parameter Writer blocks in the current model.

When parameter validation is disabled for a Paramer Writer block, normal mode simulation of the block is faster.

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

ApplicationSetting
DebuggingNo recommendation.
TraceabilityNo recommendation.
EfficiencyFor normal mode simulation, Disable all.
Safety precautionNo recommendation.

Programmatic Use

Parameter: ParamWriterValidationControl
Values: 'uselocalsettings' | 'enableall' | 'disableall'
Default: 'uselocalsettings'

Version History

Introduced in R2023a