Main Content

removeCrossPortConstraint

Class: Simulink.Mask
Namespace: Simulink

Remove cross-port constraint

Since R2023a

Syntax

maskobj.removeCrossPortConstraint(Name)

Description

maskobj.removeCrossPortConstraint(Name) removes cross-port constraint from the mask object.

Input Arguments

expand all

Name of cross-port constraints removed from the mask object, specified as a character vector. If the port constraint does not exist, the software returns an error.

Data Types: char | string

Examples

expand all

amaskobj = Simulink.Mask.get('mymodel/Subsystem');
amaskobj.removeCrossPortConstraint('CheckDatatype');
Constraints 'CheckDatatype' is not available in the block 'mymodel/Subsystem'.

Version History

Introduced in R2023a