LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to response the value change of slide bar only after mouse released

Solved!
Go to solution

Hi, all

 

When I used the slide bar to control my device, I response the value change of slide bar and set the new value to my device. But it will generate response constantly when I use the mouse to drag the pointer, which is not my wanted. I just need to response only after the mouse released. How can I implement this function? 

 

Hope your suggestion, thanks a lot.

0 Kudos
Message 1 of 13
(3,392 Views)

Are you currently using a User Event structure? If not, use one and then create an event for your slider. Under the possible events you can choose, you will see "Mouse". Expand that and have a look.

Message 2 of 13
(3,388 Views)

Thanks for your reply.

Yes, I use the event structure now.

 

It will generate many events if I use the mouse to drag the pointer, which is not my need.

I only need 1 event after the mouse released.

0 Kudos
Message 3 of 13
(3,386 Views)

No, not if you use the right event under "Mouse".

 

Mouse Up.png

Message 4 of 13
(3,384 Views)

Do you mean the event of "Mouse Up"?

 

I used this, but it will can not response the digital display value change of the slide bar.

0 Kudos
Message 5 of 13
(3,380 Views)

You said you were using the pointer to "drag" the slider...no mention of the digital display.

 

Do you mean you want this to work for either case of dragging the slider OR changing the digital display?

0 Kudos
Message 6 of 13
(3,378 Views)