LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to control the increment of the Knob?

Right now the increment of my knob is constant( the increment is 1 in my attached code). Is it possible if I want the increment to be variable such as 1,2,4,8 when the knob is in different positioin? so my knob can output data 1,2,4,8,16... instead of 1,2,3,4. Thanks.
0 Kudos
Message 1 of 4
(4,468 Views)
Yes, right-click on the knob and go to "properties...text labels". Uncheck "sequential values" and enter e.g.

label="1", value=1
label="2", value=2
...
label="8", value=8
etc.

See attached example (LV7.1).

Message Edited by altenbach on 03-27-2005 09:42 AM

0 Kudos
Message 2 of 4
(4,466 Views)
Thank, it works. I just got another problem. I use two radio buttons to control the same knob (shown as attached). I can change the properties of the konb to get different ranges something. How can I control the 'label' you showed in your code? Thanks.
0 Kudos
Message 3 of 4
(4,457 Views)
You can use the "text labels[]" property to rewrite the labels. I'm sure there is also a way to rewrite the associated values, but I can't find it at the moment so I index into the array of values. See attached (LabVIEW 7.1).

(You should only rewrite properties whenever the radio button changes, not with every loop iteration.)
0 Kudos
Message 4 of 4
(4,444 Views)