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
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: VariantConditionMismatch |
Type: string | character vector |
Values: 'none' | 'warning' | 'error' |
Default: 'none' |
Version History
Introduced in R2020b