Masking Example Models
The Simulink® Masking example models help you to understand and configure mask parameters, properties, and features. See Simulink Masking Examples for more information on Masking models. 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.
Goals | Example Models | Related Topics |
|---|---|---|
Add Parameters control type to mask dialog box. For example, Evaluate, Tune, Add Image, Pop-up, Combo-box, Slider and Dial, Slider Range | Mask parameters. Model: (
| |
| Mask Icon Drawing Commands. Model (
| Mask Editor Overview |
Use dialog layout options to:
| Dialog Layout Options. Model (
| Mask Editor Overview |
Promote parameters to a mask | Parameter Promotion. Model:
( | Promote Block Parameters to a Mask |
Execute Mask Callback | Mask Callback. Model: ( | Organize Mask Initialization and Callbacks in a MATLAB File |
Display an Image as icon on a mask | Mask Display and Mask Initialization. Model:
( | Add Image to Block Icon |
| Dynamic Mask Callback. Model:
( | Create Dynamic Mask Dialog Box |
Set a mask to be self-modifying | Self Modifiable Library Block. Model:
( | Modify Structure of Subsystem Blocks Using Self- Modifiable Mask |
Mask a variant subsystem | Masking Variant Blocks. Model:
( | Mask a Variant Subsystem |
Create a self-modifiable interface block | Self-Modifiable Interface Blocks. Model:
( | Manage Interface Connector with Mask Initialization and Block Callbacks |
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.
Bad Practice | Example Models |
|---|---|
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 |
|