Class: Simulink.Mask
Package: Simulink
Set the properties of an existing mask
p = Simulink.Mask.get(blockName)
p.set(Name,Value)
gets
the mask on the block specified by p
= Simulink.Mask.get(blockName)blockName
as
a mask object.
sets
mask properties that you specify using name–value pairs as
arguments.p
.set(Name,Value
)
|
The handle to the block or the path to the block inside the model. |
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Text used as title for mask documentation that user sees on clicking Help in the Mask Parameters dialog box. Default: empty |
|
Text used as summary for mask documentation that user sees on clicking Help in the Mask Parameters dialog box. Default: empty |
|
Text used as body text for mask documentation that user sees on clicking Help in the Mask Parameters dialog box. Default: empty |
|
MATLAB® code that initializes the mask. Default: empty |
|
Option to set whether the mask can modify itself during simulation. Default: |
|
MATLAB code that draws the mask icon. Default: empty |
|
Option to specify whether the mask icon appears inside a visible block frame. Default: |
|
Option to set the mask icon as opaque or transparent. Default: |
|
Option to specify whether Simulink® should run mask initialization before executing the mask icon commands. Default: |
|
Option to specify icon rotation. Default: |
|
Option to specify port rotation. Default: |
|
Option to specify whether mask icon is autoscaled, normalized, or scaled in pixels. Default: |
Get mask as an object using a masked block’s path.
p = Simulink.Mask.get('myModel/Subsystem');
Modify the mask so that its mask icon is transparent and its documentation summarizes what it does.
p.set('IconOpaque','off','Type','Random number generator','Description',... 'This block generates random numbers.');