Variant condition mismatch at signal source and destination
Diagnostic action to take when variant modeling issues might cause creation of unused variables in generated code
Model Configuration Pane: Diagnostics
Description
The Variant condition mismatch at signal source and destination parameter specifies the diagnostic action to take 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 | errornoneThe software does not issue a diagnostic.
warningThe software issues a warning.
errorThe 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