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

  1. Select the Library tab of the ActiveX Control Properties dialog box.
  2. Assign a name to the collection of modified settings by entering a new name in the Configuration Name field.

  1. To provide textual information about the block, click on Notes. This dialog box appears.

  2. Enter a description in the text area and click on OK.
  3. Select the directory in which to store the modified control by expanding the library hierarchy at the left. The new set of property settings is stored in the directory you select. Click on Store.
  4. Click on OK to accept all the changes and close the dialog box.

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