LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

reversed numeric control

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(3,320 Views)

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.

0 Kudos
Message 2 of 5
(3,286 Views)
Solution
Accepted by topic author karpa

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

Francisco Arellano

National Instruments Mexico
Field Systems Engineer - Energy Segment
www.ni.com/soporte
0 Kudos
Message 3 of 5
(3,271 Views)

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

0 Kudos
Message 4 of 5
(3,264 Views)

EXCELLENT!!!! xD

 

it seems that you post it while i was writting.. it works perfect now thanks!!

0 Kudos
Message 5 of 5
(3,260 Views)