Dials & Gauges Blockset    

Creating a Model Window Containing Gauges

Create a new model called dng_bounce_gui and copy the following Dials & Gauges Blockset blocks into it:

Customizing the Gauges

If you want to customize the gauges, particularly the range of values that they can display, then use this optional procedure:

  1. Open the ActiveX Control Properties dialog box for the Position (Generic Linear Gauge) block.
  2. From the Scales panel, set ScaleMax to 30. This allows the gauge to display values between 0 and 30.
  3. From the Ticks panel, set DeltaValue to 5, check the Label On/Off check box, and set Width to 0.012. This creates labeled major ticks.
  4. Still on the Ticks panel, set Ticks to 2, set TickID to 1, set DeltaValue to 1, set Inner to 0.4, and set Outer to 0.75. This creates a set of unlabeled minor ticks.
  5. From the Pointers panel, click on Color, choose the color that matches the pointer on the Velocity (Amp Meter) block, and click on OK.
  6. Click on OK.
  7. Open the ActiveX Control Properties dialog box for the Velocity (Amp Meter) block.
  8. From the Captions panel, set Captions to 0. This removes the word Amps.
  9. From the Annulars panel, set Annulars to 1. This removes the colored shading of the annular region.
  10. From the Scales panel, set Min to -30, set Max to 30, select Backward, set Start to 10, and set Stop to 170. This causes the block to display values between -30 and 30 along the right half of a circle.
  11. From the Ticks panel, set DeltaValue to 5. This creates labeled major ticks.
  12. Still on the Ticks panel, set TickID to 1 and set DeltaValue to 1. This creates unlabeled minor ticks.
  13. Click on OK.

You might also want to enlarge the blocks. They should now look like this.


  Placing ActiveX Controls in a Different Model Associating the Main Model with the Gauges