Using Simulink |
 |
The Mask Editor: An Overview
To mask a subsystem (you can only mask Subsystem blocks), select the Subsystem block, then choose Mask Subsystem from the Edit menu. The Mask Editor appears. The Mask Editor consists of three panes, each handling a different aspect of the mask:
- The Initialization pane enables you to define and describe mask dialog box parameter prompts, name the variables associated with the parameters, and specify initialization commands.
- The Icon pane enables you to define the block icon.
- The Documentation pane enables you to define the mask type and specify the block description and the block help.
Five buttons appear along the bottom of the Mask Editor:
- The OK button applies the mask settings on all panes and closes the Mask Editor.
- The Cancel button closes the Mask Editor without applying any changes made since you last pressed the Apply button.
- The Unmask button deactivates the mask and closes the Mask Editor. The mask information is retained so that the mask can be reactivated. To reactivate the mask, select the block and choose Create Mask. The Mask Editor opens, displaying the previous settings. The inactive mask information is discarded when the model is closed and cannot be recovered.
- The Help button displays the contents of this chapter.
- The Apply button creates or changes the mask using the information that appears on all masking panes. The Mask Editor remains open.
To see the system under the mask without unmasking it, select the Subsystem block, then choose Look Under Mask from the Edit menu. This command opens the subsystem. The block's mask is not affected.
| Creating the Block Icon | | The Initialization Pane |  |