Main Content

Model Verification block enabling

Option to enable or disable model verification blocks

Model Configuration Pane: Diagnostics / Data Validity

Description

The Model Verification block enabling parameter globally enables or disables Model Verification blocks, or enables them depending on the value of the Enable assertion parameter.

When you simulate models or generate code for model verification blocks in S-functions, this parameter does not apply.

Settings

Use local settings (default) | Enable All | Disable All
Use local settings

Enables or disables model verification blocks based on the value of the Enable assertion parameter for each block.

Enable All

Globally enables model verification blocks regardless of the value of the Enable assertion parameter.

Disable All

Globally disables model verification blocks regardless of the value of the Enable assertion parameter.

Tips

  • To programmatically modify this parameter, use the get_param function on the model.

  • To programmatically retrieve the value of this parameter, use the set_param function on the model.

  • If you set this parameter to Enable All or Disable All, the model verification block icon indicates whether the block is enabled or disabled. For example, the block icon of a Check Dynamic Gap block is crossed out when this parameter is Disable All.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

EnableAll for simulation or during development

DisableAll for production code generation

Programmatic Use

Parameter: AssertControl
Type: string | character vector
Values: 'UseLocalSettings' | 'EnableAll' | 'DisableAll'
Default: 'UseLocalSettings'

Version History

Introduced in R2006a