| Gauges Blockset™ | ![]() |
| On this page… |
|---|
The Linear Gauges library contains controls that show their input values graphically along a linear scale. Blocks in the library differ from each other in their numerical ranges and in their use of pointers, numerical labels, text captions, and tick marks.
The blocks in this library fall into two categories, as listed below:
| Pointer Linear Gauges | Bar Gauges |
|---|---|
| Generic Linear Gauge | Generic Bar Gauges |
| Min-Max Thermometer | Reverse Sliding Scale |
| Mixer | Scaled Bar Gauge |
| Mixer Scale | Tank |
| Multiple Scales | Thermometer |
Blocks in the two categories have slightly different interfaces, capabilities, and appearances. Pointer linear gauges use one or more pointers to indicate values. Bar gauges use a level indicator or a two-color bar to reflect a single value or level.
This section describes how to customize linear gauges by making changes that are specific to the Linear Gauges library. For changes that apply to multiple categories of blocks, see these sections:
The table below lists some common customizations involving the ActiveX Control Properties dialog box that are specific to pointer linear gauges in the Linear Gauges library.
The table below lists some common customizations involving the ActiveX Control Properties dialog box that are specific to bar gauges in the Linear Gauges library.
To display multiple pointers on a pointer linear gauge, see the customizations in the table below. To learn how to control multiple pointers simultaneously, see Controlling Multiple Graphical Elements.
| Task | Description |
|---|---|
| Add another pointer to the display | On the Pointers panel, increase the Pointers property. The ID of the new region is the Pointers property value minus one. To specify properties of the new pointer, set PointerID to that ID and then set the remaining properties on the dialog box panel accordingly. |
| Delete the most recently added pointer from the display | On the Pointers panel, decrease the Pointers property. This deletes all properties associated with the pointer, such as its color and shape. |
![]() | LEDs | Numeric Displays | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |