LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change control gauge appearance in GUI

Hi,

I am using a gauge in GUI to represent my motor position which is between -180C and 180C. Though I can set the range of the gauge from -180 to 180 (and my reading is also correct), but the appearance of the needle points roughly between -170 to 170. I want to have -180 and 180 at the same point (straight down) but not at different points (-170, 170), but I have no idea how to change it. Anyone has any input? If my message is not clear, please call me at 703-438-3616.

Thanks,
Yaguang Yang
0 Kudos
Message 1 of 3
(3,236 Views)
In the UI Editor, if you point to the tick-mark at 180, you'll see the mouse pointer change to a circular arrow. Press (and hold) the left mouse button, and drag the tick mark down toward the bottom. You'll end up with 180 and -180 on top of each other. You may need to leave the tick marks separated slightly to see the digits clearly.
0 Kudos
Message 2 of 3
(3,226 Views)
Or if you want to do it in your code, you could use:
SetCtrlAttribute(PanelHandle,panel_NUMERICGAUGE,ATTR_MARKER_START_ANGLE,number1);
SetCtrlAttribute(PanelHanel,panel_NUMERICGAUGE,ATTR_MARKER_END_ANGLE,number2);
0 Kudos
Message 3 of 3
(3,206 Views)