Dials & Gauges Blockset    

Creating a New Set of Selections

To vary the selections on the Frequency Selector block, it might be easier to remove the existing selections and create a new set. This section illustrates how to create a customized version of the Frequency Selector block that looks like this:

  1. Copy the Frequency Selector block from the library into a new model.
  2. From the model window, open the block's ActiveX Control Properties dialog box. All other steps in this procedure refer to this dialog box.
  3. Set up the block to configure selections and their captions automatically, by checking all the check boxes on the Auto panel and setting AutoOffsetStyle to Vertical. The automatic configurations are a good starting point, from which you can make manual adjustments later.
  4. Define the dial's range of motion by setting AutoStartAngle to 225 and AutoStopAngle to 135. These numbers represent degrees, starting from the top of the block and moving clockwise.
  5. Remove all but one of the existing selections by setting the Selections property on the Selections panel to 1.
  6. Adjust the remaining selection by setting SelectionCaption to Eighth Rate and setting Color to black.
  7. Add three additional selections by setting the Selections property to 4.
  8. Configure the additional selections one at a time. For each selection, first set SelectionID, and then change SelectionCaption according to the table below.

    SelectionID 
    SelectionCaption 
    0
    Eighth Rate
    1
    Quarter Rate
    2
    Half Rate
    3
    Full Rate
  9. Change the color of the currently chosen value to red by setting HighlightColor to red.

Manually Adjusting the Selections

It is generally easier to let the block determine the positions of selections and their captions. However, you can adjust the positions manually by using one or more of these techniques:


  Customizing the Frequency Selector Block Changing Output Values