User`s guide

Table Of Contents
Placing ActiveX Controls in a Subsystem
4-8
Placing ActiveX Controls in a Subsystem
This sample model builds on the one described in “Placing ActiveX Controls in
a Different Model” on page 4-3, but places the Dials & Gauges Blockset blocks
in a subsystem of the main model rather than a different model. This approach
simplifies operations such as saving and closing the system because the system
involves only a single
.mdl file.
To open a completed version of this example, type
dng_bounce_subsys in the
MATLAB Command Window. Notice that the model includes a subsystem
called
gui in the lower right corner.
These sections describe the steps for using gauges contained in a subsystem:
“Creating a Subsystem Containing Gauges”
“Associating Top-Level Blocks with the Subsystem” on page 4-9
Creating a Subsystem Containing Gauges
To create the subsystem, follow these steps:
1 Copy a Subsystem block from the Simulink Signals & Systems library into
the bouncing ball model. Change the block’s name to
gui.