getCrossPortParameterConstraint
Class: Simulink.Mask
Namespace: Simulink
Syntax
maskObj.getCrossPortParameterConstraint(consName)
Description
maskObj.getCrossPortParameterConstraint(
displays the attributes of a cross port parameter constraint.consName)
Input Arguments
Examples
View the attributes of a cross port parameter constraint of a mask object.
maskObj.getCrossPortParameterConstraint('myconstraint')ans =
CrossPortParameterConstraint with properties:
Name: 'myconstraint'
Rule: 'SameDataType'
ParameterConditions: [0×0 Simulink.Mask.ParameterCondition]
Associations: [1×1 Simulink.Mask.CrossPortParameterAssociation]
DiagnosticLevel: 'error'
DiagnosticMessage: 'The input ports and parameter must be of same datatype'Alternatives
You can also create cross port parameter constraint from the Mask Editor.
Version History
Introduced in R2025a