LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tick spacing on a gauge control

I am using a gauge control to make a tachometer indicator.  The tick spacing that I get on the gauge is quite a bit finer than I would like (too many ticks).  Does anyone know how to adjust the tick spacing on the control?  I want a scale that ranges from 0 to 6 with a total of 7 ticks (0, 1, 2, 3, 4, 5, 6).
0 Kudos
Message 1 of 6
(4,205 Views)
Hi cbfsystems,
make the max value = 6, and change your datatype to U16 or another integer value. This should do what you want.
Mike


Message Edited by MikeS81 on 03-28-2008 03:27 PM
0 Kudos
Message 2 of 6
(4,203 Views)
Thanks.  Setting the datatype to an integer was helpful and resulting in the tick spacing that I mentioned in my first post.  I am still wondering though if there is a way to specify an arbitrary tick spacing.  For instance, can I get a range of 0 to 6 with ticks 0.5 units apart (0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6)?
0 Kudos
Message 3 of 6
(4,166 Views)

Hi cbfsystems,

you can use the scale function of this control. With this function it is possible to set user defined points. right click the control and select axis arrangement, select user-defined. After that you can insert subdivisions.

Mike



Message Edited by MikeS81 on 03-31-2008 04:57 PM
0 Kudos
Message 4 of 6
(4,162 Views)

Thanks Mike,

I can see how to do what I want now.  Things seemed to be named a bit differently though in my version of LabView than what you mentioned.  I could not find anything called "axis arrangement" or "user defined".  Perhaps we're on different versions of LabView (I'm on 8.5) or maybe I'm just blind.  You helped me find two ways to do what I'm after.

1. Set the minimum and maximum values for the scale.  Right click the control on the front panel and select Scale->Marker Spacing->Arbitrary.  Right click the control and select Scale->Add Marker.  Set the marker value by double clicking on the value on the control.  Add the remaining markers in the same fashion.

2. Set the minimum and maximum values for the scale.  Set the scale interval programmatically using a property node and setting the property Scale->Range->Increment.

Thanks,

Darin

 

 

0 Kudos
Message 5 of 6
(4,146 Views)

Hi Darin,

i´m sorry for the name differences, but i have to work with a german version.

Mike

0 Kudos
Message 6 of 6
(4,132 Views)