LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

press button in while loop and make 1 iteration

Hi, and happy new year:
 
I'm trying this: when I press the button it makes a determinate action, in this case, to catch the number (in this moment) that is runnig in another while loop. This button is into a second while loop and this is "waiting". When I press the button will catch the number and return to initial position. In this example I catch 2 numbers, one when I press ON and the other when the button return to OFF. How I catch only one of them?.
 
Vicen
 
WinXP / LV7.1
0 Kudos
Message 1 of 4
(3,687 Views)

Right click on the catch button, in drop down menu, go to mechanical action

Make the catch Button's Mechanical action>> Latch when released

This will solve your twice updation problem

Look at attached vi

Regards,

Dev

Message Edited by devchander on 01-04-2007 04:34 AM

Message 2 of 4
(3,678 Views)
Hi vicens,

just change the mechanical action of (all!) your buttons to 'latch when released' and everything is fine 🙂
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(3,672 Views)
Thanks... it's so easy!!! sometimes the solution is in front your eyes and you don't see!!!
0 Kudos
Message 4 of 4
(3,665 Views)