LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set slider values from 0 to 4 and Jump to 7 to 9 in range of 10 values in single slider

please check this vi. what i have done.

and help me if anything i missed.

0 Kudos
Message 11 of 16
(1,348 Views)

@mubin wrote:

please check this vi. what i have done.

and help me if anything i missed.


Like you mentioned above, the value change just makes the slider skip around since the mouse is still trying to change it. You need to move the mouse because it will skip around like I'm still seeing in this VI. Look at the VI I attached in LV2013 and mimic the way I move the mouse. I've done a lot of legwork there for you.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 12 of 16
(1,343 Views)

i have seen your vi. its great work you have done. but, if i try to increment or decrement from digital display of slider it is not working fine.

0 Kudos
Message 13 of 16
(1,338 Views)

@mubin wrote:

i have seen your vi. its great work you have done. but, if i try to increment or decrement from digital display of slider it is not working fine.


Ok, then you'll need to add logic within the case to tell whether or not the value is being changed by the user dragging along the bar or not.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 14 of 16
(1,335 Views)

user wants to drag slider up and down. and able to increment or decrement from digital display also.

In my vi, i can able to increment or decrement from digital display with smooth jump. but with slider drag then i am not getting smooth jump.

i know that problem is with updating slider value every time, but i need smooth jump.

0 Kudos
Message 15 of 16
(1,312 Views)

The VI I gave you gives a smooth jump when the user is dragging.

The Vi you made gives a smooth jump when the user is incrementing or decrementing digital display.

Therefore:

Create a VI that uses a combination of the two methods to get your desired result. Use a few case structures to get your desired results. I suggest using the bounds of the slider range to figure out if the mouse is within it's bounds when there's a value change. I've written the hardest part of the code for you already, so you should be able to do the rest of the legwork to get your desired result.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 16 of 16
(1,298 Views)