Package: Simulink
Control masks programmatically
Use an instance of Simulink.Mask
class to perform
the following operations:
Create, copy, and delete masks.
Create, edit, and delete mask parameters.
Determine the block that owns the mask.
Obtain workspace variables defined for a mask.
|
Specifies the mask type of the associated block. Type: Default: |
|
Specifies the block description of the associated block. Type: Default: |
|
Specifies the help text that is displayed for the mask. Type: Default: |
|
Specifies the initialization commands for the associated block. Type: Default: |
|
Indicates that the block can modify itself and its content. Type: Values: Default: |
|
Specifies MATLAB® code for drawing the block icon. Type: Default: |
|
Sets the visibility of the block frame. (Visible is on, Invisible is off). Type: Values: Default: |
|
Sets the transparency of the icon (Opaque is on, Transparent is off). Type: Values: Default: |
|
Specifies whether Simulink® must run mask initialization before executing the mask icon commands. Type: Values: Default: |
|
Sets icon to rotate with the block. Type: Values: Default: |
|
Specifies the port rotation policy for the masked block. Type: Values: Default: |
|
Specifies the units for the drawing commands. Type: Values: Default: |
addCrossParameterConstraint | Add cross-parameter constraint |
addDialogControl | Add dialog control elements to mask dialog box |
addParameter | Add a parameter to a mask |
addParameterConstraint | Add parameter constraint to a mask |
copy | Copy a mask from one block to another |
create | Create a mask on a Simulink block |
delete | Unmask a block and delete the mask from memory |
get | Get a block mask as a mask object |
getAssociatedParametersOfConstraint | Get mask parameters associated with a constraint |
getCrossParameterConstraint | Get cross-parameter constraint |
getDialogControl | Search for a specific dialog control on the mask |
getOwner | Determine the block that owns a mask |
getParameter | Get a mask parameter using its name |
getParameterConstraint | Get mask parameter constraint properties |
getWorkspaceVariables | Get all the variables defined in the mask workspace for a masked block |
numParameters | Determine the number of parameters in a mask |
removeAllCrossParameterConstraints | Delete all cross-parameter constraints from a mask |
removeAllParameterConstraints | Delete all mask parameter constraints |
removeAllParameters | Remove all existing parameters from a mask |
removeCrossParameterConstraint | Delete a cross-parameter constraint |
removeDialogControl | Remove dialog control element from mask dialog box |
removeParameter | Remove parameter from mask dialog box |
removeParameterConstraint | Delete a mask parameter constraint |
set | Set the properties of an existing mask |