0% found this document useful (0 votes)
36 views

Simulink - Dynamic System Simulation For MatLab 8

This document discusses how to use masks to customize blocks in Simulink. It describes creating a sample masked subsystem with dialog box prompts, block description, help text, and icon. It provides an overview of the mask editor pages for defining initialization parameters, the block icon, and documentation. It also discusses creating dynamic dialogs for masked blocks.

Uploaded by

ing.jmsolis
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Simulink - Dynamic System Simulation For MatLab 8

This document discusses how to use masks to customize blocks in Simulink. It describes creating a sample masked subsystem with dialog box prompts, block description, help text, and icon. It provides an overview of the mask editor pages for defining initialization parameters, the block icon, and documentation. It also discusses creating dynamic dialogs for masked blocks.

Uploaded by

ing.jmsolis
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like