The Simulink® Masking example models help you to understand and configure mask parameters, properties, and features. The examples are grouped by type. In an example model:
To view the mask definition, double-click the View Mask block.
To view the mask dialog box, double-click the block.
Add Parameters control type to mask dialog box. For example, Evaluate, Tune, Add Image, Pop-up, Combo-box, Slider and Dial, Slider Range
||Mask Editor Overview|
Use dialog layout options to:
Promote parameters to a mask
|Promote Parameter to Mask|
Execute Mask Callback
Display an Image as icon on a mask
|Add Image to Block Icon|
Set a mask to be self-modifying
|Create Self-Modifying Mask|
Use MATLAB graphics to create a MATLAB GUI and use it as mask dialog
Mask a variant subsystem
Create a self-modifiable interface block
There are certain bad practices, which when followed may result in unexpected behavior of the masking features. The following table shows some of the bad practices.
Use of Mask callbacks, where the callback modifies entities outside of its scope may result in unexpected behavior
Setting parameters outside of the hierarchical boundary in nested masks may lead to unexpected behavior