01-12-2012 02:14 PM
Attached is a very simple vi. On the front panel are two knobs. Each knob appears to be identical; they have five settings (0,1,2,3,4). Using the text labels property I have assigned the values (0,2,4,8,16).
If you try to move the first knob you will see that you can only move it to 0,1,and 2. If you try to move the second knob you can move it to all the settings.
What is the difference? For the first knob the Data Entry properties are set to minimum=0 and maximum=4. For the second knob they are set to 0 and 5. Everything else is the same.
This is so elementary that I must be missing something but cannot figure out what it is.
David
Solved! Go to Solution.
01-12-2012 02:19 PM
Won't go past 4 (which is the value of position 2)
01-12-2012 02:38 PM
Yes, but if you look at knob 2 properties you will see that the maximum is set to 5. So why does it work for values of 8 (knob position 3) and 16 (knob position 4)?
David
01-12-2012 02:46 PM - edited 01-12-2012 02:48 PM
because there is no 5 it never sees a 5 and never locks edit the knob so that it has 1, 2, 5 8, 16 values and it locks at 5
alternatly coerce the out of range values (but make sure the values EXIST before you coerce them or you'll coerce to undefined value)
01-12-2012 02:50 PM
Thanks for your logical and very clear explanation.
David