LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make a Mirror Move indefinitely


@pincpanter wrote:

On the other side, if you move the mouse pointer away from the button before releasing the mouse, the Mouse Up event is not generated.

I suggest you to define the buttons operation as Switch Until Release: this will allow you to receive two Value Change events, one (with Value True) when you click on the button, the other (with Value False) when you release the mouse. Check the NewVal output in the event case to decide whether to activate or stop the motor. I assume you want to activate the movement in synch with the button LED (LED on: move; LED off: stop).

Also, add a Value Change for the Stop button to terminate the program immediately.


Very good suggestions, Paolo. This should work perfectly for "moving as long as mouse button is pressed".

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 11 of 11
(667 Views)