Using Simulink | ![]() ![]() |
Creating Dynamic Dialogs for Masked Blocks
Simulink allows you to create dialogs for masked blocks whose appearance changes in response to user input. Features of masked dialog features that can change in this way include:
Changing a parameter can cause the control for another parameter to appear or disappear. The dialog expands or shrinks when a control appears or disappears, respectively.
Changing a parameter can cause the control for another parameter to be enabled or disabled for input. Simulink grays a disabled control to indicate visually that it is disabled.
Changing a parameter can cause related parameters to be set to appropriate values.
Creating a dynamic masked dialog entails using the mask editor in combination with the Simulink set_param
command. Specifically, you first use the mask editor to define all the dialog's parameters both static and dynamic. Next you use the Simulink set_param
command at the MATLAB command line to specify callback functions that define the dialog's response to user input. Finally you save the model or library containing the masked subsystem to complete the creation of the dynamic masked dialog.
![]() | Creating Self-Modifying Masked Blocks | Setting Masked Block Dialog Parameters | ![]() |