LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make an event occur once and only once upon a button press in Labview?

I have run into this issue several times now, usually with sql database entries. The button is wired to the selector on a case statement which is inside a while loop. The loop executes rapidly (it must, for my appliction), and so the case statement executes many times when the button is pressed.
0 Kudos
Message 1 of 3
(2,536 Views)
All you have to do is change the mechanical action. Use Latch When Released and the button reverts to the old value once it is read.
Message 2 of 3
(2,536 Views)
Without seeing your VI, my first thought is you need a FOR loop, with a "1" for the amount of iterations - perhaps connect your case inside the FOR loop with N=1. Your FOR loop could be accessed via a Case, or use compare logic VIs along with your booleon button to initiate it. Good Luck, Doug
0 Kudos
Message 3 of 3
(2,536 Views)