Simulink.Mask.PortConstraint class
Description
Use an instance of the Simulink.Mask.PortConstraint
class to add or remove
port constraints on a masked block.
Properties
Public Properties
Name
— Name of the constraint
(default) | character vector
Name of the port constraint specified as a string.
Data Types: char
ParameterConditions
— Mask parameter conditions
(default) | Simulink.Mask.ParameterCondition
object
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.
Rule
— Datatype, complexity, and dimension associated with the constraint
(default) | Simulink.Mask.PortConstraintRule
object
The allowed datatype, complexity, and dimension associated with the constraint,
specified as a PortConstraintRule
object.
Data Types: string
DiagnosticLevel
— Type of diagnostic message
error (default) | warning
The type of diagnostic message displayed when validation condition fails specified as error or warning.
Data Types: char
DiagnosticMessage
— Diagnostic message
(default) | character vector
The diagnostic message that is displayed when the validation fails, specified as a character vector.
Data Types: character vector
Methods
Public Methods
addPortConstraint | Create port constraint on a mask object |
getPortConstraint | Displays attributes of specified port constraint |
removePortConstraint | Remove specified port constraint |
removeAllPortConstraint | Remove all port constraints on masked block |
Version History
Introduced in R2022a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)