Main Content

Simulink.Mask.CrossPortParameterAssociation Class

Namespace: Simulink.Mask

Cross port parameter constraint association between mask parameters and ports

Since R2025a

Description

The Simulink.Mask.CrossPortParameterAssociation class is a handle class.

Use an instance of Simulink.Mask.CrossPortParameterAssociation to associate cross port parameter constraints between mask parameters and ports of the same masked block.

Creation

consAssocObj = Simulink.Mask.CrossPortParameterAssociation creates an empty cross port parameter constraint association object. Create cross port parameter constraint using the addCrossPortParameterConstraint and then associate cross port parameter constraints between mask parameters and ports using the cross port parameter constraint association object.

Properties

expand all

Name of the mask parameter, specified as a string or character vector.

Example: consAssocObj.Parameters = {'Speed'};

Data Types: char | string

Name of the port identifier on the masked block, specified as a string or character vector.

Example: consAssocObj.PortIdentifiers = {'Input_1'};

Data Types: char | string

Version History

Introduced in R2025a