addConstraint
Class: Simulink.VariantConfigurationData
Namespace: Simulink
Add constraint to variant configuration data object
Syntax
Description
Note
This method requires Variant Manager for Simulink®.
vcdataObj.addConstraint(
adds a constraint with the given name to nameOfConstraint
)vcdataObj
, which is an object of
the Simulink.VariantConfigurationData
class.
You can use constraints to check if all the variant configurations present in
vcdataObj
satisfy certain conditions. The constraint must be specified
as a valid Boolean condition expression. Simulink evaluates these constraints during variant configuration activation, model
compilation, simulation, and code generation workflows.
vcdataObj.addConstraint(
adds a new constraint with the given name and condition expression to
nameOfConstraint
,condition
)vcdataObj
.
vcdataObj.addConstraint(
adds a new constraint with the given name, condition expression, and description to
nameOfConstraint
,condition
,description
)vcdataObj
.
Input Arguments
Examples
Version History
Introduced in R2013b