01-16-2009 11:13 AM
In LabVIEW 8.5 I inserted a slider control onto my front panel, when I click the Up button it goes to the Top of my four position selection, then subsequent presses of the Up button cause it to go down. Similarly, pressing Down takes the slide to the Bottom (if it is not already there), subsequent presses cause the slider to move up.
Why does the slide behave this way? How can I change the behaviour to the intuitive Up for up and Down for down?
Solved! Go to Solution.
01-16-2009 11:59 AM
Can you attach a simple VI containing your control?
01-16-2009 12:27 PM
01-16-2009 12:31 PM
01-16-2009 12:36 PM
01-16-2009 12:37 PM
LabVIEW has about 20 different slides (modern, classic, system, etc.) and most (e.g modern) don't have up/down buttons, except on the digitial display (if visible). Thus my confusion.
Since the possible combinations of slide style, datatype, entry limits, and scale types are nealy infinite, a bit more detail is clearly needed so we can try to reproduce the problem. 😉
Your VI was not attached. can you try again. Thanks!
01-16-2009 12:42 PM - edited 01-16-2009 12:46 PM
What are you trying to do? It's strange..
01-16-2009 12:49 PM
It's an exercise is in LabVIEW for Everyone 3rd ed. so, of course, it is strange. I take the long view of wanting to know what a control does not function as expected.
See calculator.vi above. It posted after I switched from Chrome to IE 7.
01-16-2009 12:50 PM
Ah, text labels! You did not mention that! 😄
The up/down buttons for the digital display act according to the order in which they appear in the list (zero on top) so it is correct for that.
Solution: change the control properties and "invert" the scale. Now they match!
Also, change the datatype to integer (I32). You never want fractional values and then you also don't need to convert/coerce on the diagram.
(I am not sure about disabling the "wrapping around" when you reach the ends. Is this really a problem?)
01-16-2009 12:54 PM