Main Content

Variant condition mismatch at signal source and destination

Description

When you generate code using Embedded Coder®, select the diagnostic action to take if the software detects variant-related modeling issues that may result in unused Simulink®variables in the generated code. Unused variables are created when there is discrepancy in variant conditions that propagate between the source and the destination blocks while compiling the model. For more on discrepancies, seePrevent Creation of Unused Variables for Lenient Variant Choices, orPrevent Creation of Unused Variables for Unconditional and Conditional Variant Choices.

Category:Diagnostics

Settings

Default:none

none

When Simulink software detects a discrepancy in variant conditions that propagate between the source and the destination blocks with theVariant activation timeoption set tocode compile, the software takes no action.

warning

When Simulink software detects a discrepancy in variant conditions that propagate between the source and the destination blocks with theVariant activation timeoption set tocode compile, the software displays a warning and continues with the simulation. To suppress the warning and continue with simulation, clickSuppress.

error

When Simulink software detects a discrepancy in variant conditions that propagate between the source and the destination blocks with theVariant activation timeoption set tocode compile, the software displays an error and terminates the simulation.

Command-Line Information

Parameter:VariantConditionMismatch
Value:'none'|'warning'|'error'
Default:'none'

Recommended Settings

Application Setting
Debugging No impact
Traceability No impact
Efficiency No impact
Safety precaution No impact

Related Topics