Main Content

Introduction to System Mask

A system mask can be applied to a model or a subsystem block diagram. A model consists of multiple blocks, with each block containing its own parameter and block dialog box. Simulink® enables you to mask a model. By masking a model you encapsulate the model to have its own mask parameter dialog box. You can customize the mask parameter dialog box. When you mask a model, the model arguments become the mask parameters. Referencing a masked model helps in having a better user interface for a model with ease of controlling the model parameters through the mask.

When you reference a masked model from a Model block, a mask is generated automatically on the Model block. The generated mask on the Model block is a copy of the model mask that it is referencing. You can reference a masked model from multiple Model block instances.

Consider a model that represents the DC motor equation. Plant in this model is a Model block that references a masked model, simplifying the user interface.

system mask

The Plant block contains the same mask as that of the masked model and the mask is uneditable. The mask can only be edited from the Mask Editor dialog box of the masked model.

Related Topics