Hi,
I've faced problems while working with sliders, which values are passed to serial device. I am using events, and here is a problem: if i use "Value changed" event and change slider position by moving a mouse, the event is generated a few times (i.e. event is triggered by every single value on a slider). It means, that I have to transmit intermediate values to my serial device in order to set the last one. I tried to change event "Value changed" to "Mouse Up", but there was another problem: the value doesn't change if mouse leaves control element area (i.e., "mouse up" is generated as VI event, not as slider event). It would seem to be OK, but slider position is already changed, and there is no other variable which stores
value of current slider position! I mean that value and slider position are different and I don't know how to synchronize them. Using "Mouse Up" event for whole VI is not a good solution for me, because I have multiple sliders to control separately.
How to create non-redudand and efficient slider handling? Any ideas?
(Please see attached VI example)
Thank You
Vitalijus