LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i change the knob control to have only 3 values

I want to use the knob like the knobs in a ociloscope.
Thanks.
0 Kudos
Message 1 of 3
(4,737 Views)
i assume you mean, who can you force it to use discrete values rather than continuos?

place a knob control on the diagram , right click it and choose representation, and an integer datatype. this will force it to be discrete values. if you only want three different values, and these are arbitary, click on the first value with the text tool, and change it to 1, and on the last one to change it to 3.

if the values matter, right click on the knob and use scale, marker spacing, arbitary, and then scale, add marker and remove marker untill you have enough markers. reset the scale to uniform, and then edit the values so that they are what you want.

Hope this helps.

Matt
0 Kudos
Message 2 of 3
(4,737 Views)
I have included an example for you. *smiles*

But basically, change the representation to I8, set the data range to min 0, max 2, increment 1, then change the highest valve on the control knob to 2. You will then end up with 3 valves around the knob.

Kim
0 Kudos
Message 3 of 3
(4,737 Views)