Using Masks to Customize Blocks
6
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
A Sample Masked Subsystem . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
Creating Mask Dialog Box Prompts . . . . . . . . . . . . . . . . . . . . . . 6-4
Creating the Block Description and Help Text . . . . . . . . . . . . . 6-6
Creating the Block Icon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8
The Mask Editor: An Overview . . . . . . . . . . . . . . . . . . . . . . . . . 6-9
The Initialization Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-10
Prompts and Associated Variables . . . . . . . . . . . . . . . . . . . . . . 6-10
Control Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-12
Default Values for Masked Block Parameters . . . . . . . . . . . . . 6-14
Tunable Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
Initialization Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-15
The Icon Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-18
Displaying Text on the Block Icon . . . . . . . . . . . . . . . . . . . . . . 6-18
Displaying Graphics on the Block Icon . . . . . . . . . . . . . . . . . . . 6-20
Displaying Images on Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-21
Displaying a Transfer Function on the Block Icon . . . . . . . . . . 6-22
Controlling Icon Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-23
The Documentation Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-26
The Mask Type Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-26
The Block Description Field . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-26
The Mask Help Text Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-27
Creating Dynamic Dialogs for Masked Blocks . . . . . . . . . . 6-28
Setting Masked Block Dialog Parameters . . . . . . . . . . . . . . . . 6-28
Predefined Masked Dialog Parameters . . . . . . . . . . . . . . . . . . 6-29
vi