Main Content

Simulink.Mask.PortConstraint Class

Create mask port constraints programmatically

Since R2022a

Description

Use an instance of the Simulink.Mask.PortConstraint class to add or remove port constraints on a masked block.

Properties

expand all

Name of port constraint, specified as a string.

Data Types: char

Mask parameter conditions, specified as an array of Simulink.Mask.ParameterCondition objects. The port constraints are active on the associated port only when the port satisfies all the parameter conditions.

Allowed datatype, complexity, and dimension associated with constraint, specified as a Simulink.Mask.PortConstraintRule object.

Data Types: string

Type of diagnostic message displayed when validation condition fails, specified as error or warning.

Data Types: char

Diagnostic message displayed when validation fails, specified as a character vector.

Data Types: char

Methods

expand all

Version History

Introduced in R2022a