Class: Simulink.VariantConfigurationData
Package: Simulink
Add a constraint to the variant configuration data object
vcdataObj.addConstraint(nameOfConstraint)
vcdataObj.addConstraint(nameOfConstraint,condition)
vcdataObj.addConstraint(nameOfConstraint,condition,description)
vcdataObj.addConstraint(
adds
a new constraint with a given name to nameOfConstraint
)vcdataObj
.
vcdataObj.addConstraint(
adds
a new constraint with a given name and condition expression to nameOfConstraint
,condition
)vcdataObj
.
vcdataObj.addConstraint(
adds
a new constraint with a given name, condition expression, and description
to nameOfConstraint
,condition
,description
)vcdataObj
.
|
Name of constraint being added. Must be unique and valid MATLAB® variable name. |
|
Boolean expression that must evaluate to true. When the expression evaluates to true, it means the constraint is satisfied. |
|
Text that describes the constraint. |
% Define the variant configuration data object vcdataObj = Simulink.VariantConfigurationData; % Add a constraint named LinNotExtern vcdataObj.addConstraint('LinNotExtern','((Ctrl~=1)... || (PlantLocation ~=1))','Description of the constraint')