LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using knob to select distinct values

Solved!
Go to solution
I would like to have a knob where a user can select between only four options: 6, 12, 18, 24.  I have updated the properties to coerce and I have changed the labels so it looks like there are only four options but it still allows me to choose from 6 to 24 in increments of 1.  I have used an indicator to see what data is being produced by the control and it also shows 6 to 24 with increments of 1.  Am I just using the wrong control?
0 Kudos
Message 1 of 7
(4,010 Views)
Solution
Accepted by topic author colleenalana
You can use text labels. Right click on the knob to select this. Right click again and make text display visible. You can then right click on the text label display and select 'Edit Items'. Add as many items as you want and to assign a specific numeric to each label, uncheck the Sequential Values box.
Message 2 of 7
(4,006 Views)
Thank you that worked.  I am still wondering what the Data Entry Page in properties does because it doesn't seem to be doing anything.  Attaching code with your solution.
0 Kudos
Message 3 of 7
(3,996 Views)

Well, you only did half of my solution. You did not modify it to return the value of the text - if 6 is selected, do you want 6 as the value or 0 as you have it now?

 

What are you trying to do with data entry?

Message 4 of 7
(3,991 Views)
oops, thanks!
0 Kudos
Message 5 of 7
(3,965 Views)

can anyone please give me this vi in 8.5?

 

thanks...

0 Kudos
Message 6 of 7
(3,768 Views)

sure.  hope this works for you...

 

 

Message 7 of 7
(3,742 Views)