01-24-2009 01:54 PM
Hi, i have a numeric slide control with min=0 and max=60; so at the bottom is the 0 and at the top is 60.
i want to reverse the slide so the 60 is at the bottom and the 0 at the top can i do that..?
i use cvi 8.5..
Thanks
Solved! Go to Solution.
01-26-2009 11:30 AM
Hello Karpa,
I am not sure that there is any inherent LabWindows/CVI functionality to accomplish this, but one idea does come to mind. If you remove the labels that are associated with the control and create your own custom labels in accordance with the reversed structure, you could then use the expression 60 - CtrlVal (where CtrlVal comes from getting the value of the numeric slide control) whenever you want to reference the "current value" of the control.
01-26-2009 01:55 PM
Hi;
In fact if you set the lower and upper limits for your control and the use the Text Tool to edit the labels in your control, it will be automatically changed to go in reverse, I attach an image to explain this more graphically.
Hope the information is useful.
Good Luck
01-26-2009 03:43 PM
well this could be a good solution but the 60 value was a random value just to make it simple.. The actual value (although it will be near 60) will change dynamically depending on users configuration.. I want the markers and the ticks on the slide with auto division also (if possible).. This is strange though.. There is a configuration of how the slide fill's (above or below), you can reverse axis on graphs but you can't reverse axis on slides.. I think you should add this feature..
is there any other solution..? Does newer versions like 9.0 have this feature..?
Thanks
01-26-2009 03:46 PM
EXCELLENT!!!! xD
it seems that you post it while i was writting.. it works perfect now thanks!!