LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control value change by draging without update before mouse up

When changing the value of controls with sliders, knobs,... by draging with the mouse clicked, the value is updated "constantly". Unfortunately I have not found a simple way of having a value change event only after the mouse button was released again.

=> check out the attached example (LV7.1)

It would be great if there were some simple way to define how the object should behave (perhaps there is and someone could tell me).

As this keeps bugging me in many Labview applications all help is welcome.

Many thanks

Patrick
0 Kudos
Message 1 of 10
(3,927 Views)

If I understand your problem correctly, you could just do something very simple as in the attached example (LabVIEW 7.1).

Let me know if you have questions. 🙂

0 Kudos
Message 2 of 10
(3,917 Views)
Good try, but the tank control won't be updated when entering a value directly into the digital display.

(e.g. enter 2 into the digital display => the tank indicator won't update).

But many thanks so far, perhaps we'll still get there somehow.

Patrick
0 Kudos
Message 3 of 10
(3,913 Views)
Woops sorry now I get it - once the mouse leaves the value is updated, hmm but this means that the value will be updated every time the mouse crosses the control ... still not perfect 😞

Message Edited by psi_Patrick on 09-10-2005 02:03 AM

0 Kudos
Message 4 of 10
(3,913 Views)

if there is key focus event, this problem is really simple..

anyway,  try with attached sample.

0 Kudos
Message 5 of 10
(3,905 Views)
Hello guys,

I thought it was possible (like it is for a string control) to enable/disable the "update on data change" on the slide, but it seems not to be so...
How about using just a "mouse up event" on the slide, and when this happen, you check that the value has changed (using the shift register of the while loop ?

This is just an idea, I hope it will help (vi attached is just a small modification of altenbach's vi).

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 10
(3,901 Views)
Well, if the mouse crosses the control, the value does not change so it is not that critical. 😉
 
One solution to the digital display problem would the the following: Make the digital display a seperate control. Seems to work fine, but see for yourself. (LabVIEW 7.1)
 
0 Kudos
Message 7 of 10
(3,897 Views)

@goodtime:

it works if the mouse up occurs over the control, once the mouse up occurs somewhere else over the vi the value won't be updated (it's tricky, I've already spent a lot of time on it).

Again, thanks for any reply, its interesting to know what other people come up with.

Message 8 of 10
(3,892 Views)

Hi TiTou

what's missing is that with your solution the value won't be updated when entering it in the digital display field

the challenge with this one I guess is bringing all partial solutions together to one single solution as in my original post, what I'm really after is a very simple solution - if it exists within the current Labview package

Cheers

Patrick

0 Kudos
Message 9 of 10
(3,890 Views)

Hi Altenbach

Now this is a nice solution Smiley Happy

Only drawback is it needs one more separate object and three event handlers, alas implementing this into my application with 43 events and three controls with sliders won't be fun. Anyway I'll definitely keep this on my list of possible solutions.

Thanks a lot

Patrick

0 Kudos
Message 10 of 10
(3,888 Views)