Main Content

Variant condition mismatch at signal source and destination

Diagnostic behavior when variant modeling issues might cause creation of unused variables in generated code

Since R2020b

Model Configuration Pane: Diagnostics

Description

The Variant condition mismatch at signal source and destination parameter specifies the diagnostic behavior when variant modeling issues might cause generated code to contain unused variables. Generated code may contain unused variables due to incorrect modelling. For more information, see Prevent Creation of Unused Variables for Lenient Variant Choices or Prevent Creation of Unused Variables for Unconditional and Conditional Variant Choices.

Settings

none (default) | warning | error
none

The software does not issue a diagnostic.

warning

The software issues a warning.

error

The software issues an error.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: VariantConditionMismatch
Type: string | character vector
Values: 'none' | 'warning' | 'error'
Default: 'none'

Version History

Introduced in R2020b