Introduction to Stateflow with Applications

Appendix C: Masked Subsystems

This appendix presents an overview of masked subsystems, and a step by step procedure to create custom user interfaces, i.e., masks for Simulink subsystems.

C.1 Masks Defined

A mask is a custom user interface for a subsystem. A masked subsystem conceals the subsystem's contents, and it appear to the user as an atomic block with its own icon and parameter dialog box. However, a masked subsystem provides only graphical, not functional, grouping. We can create a mask for any Simulink subsystem using the Mask Editor.

C.2 Advantages Using Masked Subsystems

A masked subsystem allows us to

  1. Replace the parameter dialogs of a subsystem and its contents with a single parameter dialog with its own block description, parameter prompts, and help text.

  2. Replace a subsystem's standard icon with a custom icon that shows its purpose.

  3. Prevent accidental modification of subsystems by concealing their contents behind a mask.

  4. Placing a masked subsystem in a library. We can also mask S Function and Model blocks.

C.3 Mask Features

Masks can include any of the following features:

Mask Icon The mask icon replaces a subsystem's standard icon, i.e., it appears in a block diagram in place of the standard icon for a subsystem block. Simulink uses MATLAB code that we supply to draw the custom icon. We can use any MATLAB drawing command in the icon code.

Mask Parameters Masked subsystems allow us to define a set of user specified parameters. Simulink stores the values of these parameters in the mask...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: MASK ROM (MROM)
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.