Main Content

Simulink.Mask.PortConstraint class

Create mask port constraints programmatically

Description

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

Properties

expand all

Public Properties

Name of the port constraint specified as a string.

Data Types: char

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

The allowed datatype, complexity, and dimension associated with the constraint, specified as a PortConstraintRule object.

Data Types: string

The type of diagnostic message displayed when validation condition fails specified as error or warning.

Data Types: char

The diagnostic message that is displayed when the validation fails, specified as a character vector.

Data Types: character vector

Methods

expand all

Version History

Introduced in R2022a