Define Constraints
This example shows how to define model-wide constraints that must evaluate to true for a variant configuration to become active.
-
In theModelingtab of toolstrip, openDesignsection, clickVariant Manager.
In the Variant Manager, in theConstraintstab, click.
Enter
LinNotExtern
as theNameand(Ctrl~=1) || (PlantLocation ~=1)
as theConditionfor the constraint.This constraint activates variants that do not use theLinearController andExternalPlant Controller configurations.
To activate and validate the constraint, click theActivatebutton.
Note
Variant Manager constraints are validated during model compilation as well. However, these constraints are not validated post compilation, for example, atstartup
activation time.