Main Content

Define Constraints

This example shows how to define model-wide constraints that must evaluate to true for a variant configuration to become active.

  1. Open slexVariantManagement.

  2. In the Modeling tab of toolstrip, open Design section, click Variant Manager.

  3. In the Variant Manager, in the Constraints tab, click .

  4. Enter LinNotExtern as the Name and (Ctrl~=1) || (PlantLocation ~=1) as the Condition for the constraint.

    This constraint activates variants that do not use the Linear Controller and External Plant Controller configurations.

  5. To activate and validate the constraint, click the Activate button.

Note

Variant Manager constraints are validated during model compilation as well. However, these constraints are not validated post compilation, for example, at startup activation time.

Related Examples

More About