User`s guide
Table Of Contents
- Getting Started
- Using Instrumentation in a Model
- Categories of ActiveX Controls
- Placing ActiveX Controls in a Different Window
- Library Reference
- Index

4 Placing ActiveX Controls in a Different Window
4-3
Placing ActiveX Controls in a Different Model
This sample model modifies the Simulink bounce demo by displaying the
position and velocity signals on Dials & Gauges Blockset blocks contained in
another model window. To open the original demo model, type
bounce in
MATLAB. To open the modified version, type
dng_bounce in MATLAB. The
modified version includes two ActiveX Control blocks on the signals that feed
into the Scope block, as in the figure below.
The following sections describe the steps for using gauges contained in a
different model:
•“Creating a Model Window Containing Gauges”
•“Associating the Main Model with the Gauges” on page 4-6
Creating a Model Window Containing Gauges
Create a new model called dng_bounce_gui and copy the following Dials &
Gauges Blockset blocks into it:
•The Generic Linear Gauge block from the Linear Gauges library. Change the
block’s name to
Position.