| 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:
Position.
Velocity.
Customizing the Gauges
If you want to customize the gauges, particularly the range of values that they can display, then use this optional procedure:
30. This allows the gauge to display values between 0 and 30.
5, check the Label On/Off check box, and set Width to 0.012. This creates labeled major ticks.
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.
0. This removes the word Amps.
1. This removes the colored shading of the annular region.
-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.
5. This creates labeled major ticks.
1 and set DeltaValue to 1. This creates unlabeled minor ticks.
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 | ![]() |