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

1 Getting Started
1-16
The files with the .ax extension describe the Dials & Gauges Blockset blocks.
Note that these files are not text files. They save the current state of the
ActiveX control that is embedded in the block. If you delete the
.ax files, then
the corresponding blocks reinitialize themselves to the exact state in which
they are stored in the library.
Note The easiest way to rename a model is to open it in Simulink and use the
Save As menu option. If, alternatively, you simply rename the .mdl file from
your operating system, then remember to rename the associated .ax files.
Dials & Gauges Blockset Blocks Within Subsystems
If you save a model that contains a Dials & Gauges Blockset block within a
subsystem, then the subsystem’s name is also included in the name of the
.ax
file. For example, if the model contains a Generic Knob block inside a
subsystem named
SubSystem, then the following file is saved.
sample@SubSystem@Generic_Knob.ax
Printing the Model
You can print the structure of the model by choosing Print from the model
window’s
File menu. However, the printing functionality in Simulink does not
print the active areas of Dials & Gauges Blockset blocks. Instead, it shows only
the outline of those blocks.
To capture the exact appearance of a model that contains Dials & Gauges
Blockset blocks, you can create a
.bmp file that represents the model by
entering either of these commands in the MATLAB Command Window.
print -smodelname -dbitmap filename
print(['-s','modelname'],'-dbitmap','filename')
Here, modelname and filename list the names of the Simulink model and the
bitmap file, respectively. For example, if the open model is called
sample, then
this command saves it in a file called
samplepic.bmp.
print -ssample -dbitmap samplepic
After MATLAB creates the bitmap file, you can insert it into an application
that can print it.