Dials & Gauges Blockset | ![]() ![]() |
Saving and Reusing a Customized Control
If you have modified settings in a block's ActiveX Control Properties dialog box, then you might want to store the customized version of the block for later use or to share with other users. The following subsections describe two methods:
Saving Customized Controls Automatically
Saving the model causes MATLAB to save all property settings for Dials & Gauges Blockset blocks in .ax
files (See Saving the Model.). To share your customized controls with other users, give them the .mdl
file along with all of its associated .ax
files. To use your customized block in a new model, copy the block from the old model, paste it into the new model, and then save the new model.
Saving Customized Controls Using the Library Panel
Alternatively, you can use the ActiveX Control Properties dialog box to save property settings for later use on your own machine. However, this method does not enable you to share these customized controls with users of other machines. The steps are
Note If you leave this field blank, the new property settings write over the previous settings, which means that you cannot access the original version except by reinstalling the blockset or by registering the ActiveX controls again. To learn how to register the ActiveX controls, see Configuring the Dials & Gauges Blockset. |
The figure below shows the dialog box with fields filled in. The customized control is stored in the Linear Gauge directory.
An alternative to this procedure is to export customized controls to .gms
files. To do this, select a directory from the left side of the panel and click on Export. You can later access these controls by using the Import button, or share the controls by sharing the .gms
files.
![]() | Updating Multiple Portions of a Pie Chart | Categories of ActiveX Controls | ![]() |