Simulink® enables you to create block masks. A mask is a custom user interface for a block.
By masking a block you encapsulate the block diagram to have its own parameter dialog box with its own block description, parameter prompts, and help texts.
You can mask an independent custom block that you can reuse as unique blocks like those defined in Simulink.
To know about creating a block mask, see Create a Simple Mask.
Simulink.Mask | Control masks programmatically |
Simulink.Mask.Constraints | Create Mask Constraint |
Simulink.MaskParameter | Control mask parameters programmatically |
Simulink.dialog.Control | Create instances of dialog control |
Simulink.dialog.parameter.CustomTable | Create custom tables programmatically |
Simulink.dialog.ListboxControl | Control listbox programmatically |
Simulink.dialog.TreeControl | Control Tree control programmatically |
Learn the basics about masking and when to mask blocks.
Create and customize a block mask.
View or edit an existing block mask.
Create and customize masks using the Mask Editor interface.
Specify Data Types Using DataTypeStr Parameter
Add data type constraint for an Edit mask parameter.
Try this example to create a mask dialog box and understand the use of some Mask Editor features.
Handling Large Number of Mask Parameters
Add large number of mask parameters in a Table programmatically.
Customize Tables for Masked Blocks
Add custom tables to mask dialog box.
Control Custom Tables Programmatically
Use Command Line Interface to control custom tables.
Validating Mask Parameters Using Constraints
Add validation to mask parameters using constraints.
Create custom constraints using MATLAB logical expressions.
Add and execute mask callback code.
Use MATLAB® code to initialize a block mask.
Expose specific block parameters to the mask.
Control Masks Programmatically
Create and edit block masks from the MATLAB command line.
Pass Values to Blocks Under the Mask
Specify input values using the mask dialog box.
Add custom interface to linked blocks.
Approaches to Control Active Variant Choice of a Variant Subsystem
Recommended approaches to control active variant choice of Variant Subsystems.
Define Measurement Units for Masked Blocks
Set measurement units for output and input ports of a masked block.
Add images as mask icons and save them in the SLX file.
Create Hierarchical List in Mask Dialog
Create a hierarchical list of data on a mask.
Change the mask dialog box based on user - input.
Create masked library blocks that can modify their structural contents.
Debug Masks That Use MATLAB Code
Troubleshoot errors in the mask initialization code.
Learn about masking a model.
Create and Reference a Masked Model
How to mask a model interactively.
Control Model Mask Programmatically
How to mask a model programmatically.