Main Content
getCrossParameterConstraint
Class: Simulink.Mask
Namespace: Simulink
Get cross-parameter constraint
Syntax
CrossConstraint = maskObj.getCrossParameterConstraint(CrossConstraintName)
Description
gets the properties of a cross parameter constraint on a mask. Apply a cross-parameter
constraint to specify rules between mask parameter values.CrossConstraint
= maskObj
.getCrossParameterConstraint(CrossConstraintName
)
Input Arguments
Output Arguments
Examples
% Get block mask handle. maskObj = Simulink.Mask.get(gcb); % Get cross constraint. CrossConstraint = maskObj.getCrossParameterConstraint('crossparam1')
ans = CrossParameterConstraints with properties: Name: 'crossparam1' Rule: 'Parameter2 > Parameter3' ErrorMessage: ''
Version History
Introduced in R2018a