08-18-2020 03:10 AM
What you want is a 'latching' rather than 'switching' button.
Right click on your control and go to Mechanical Action, then choose one of the Latching options (bottom row).
This will make the button reset to the previous value after it is read (inside the loop).
A downside of latching buttons is that they cannot be used with Local Variables, but you don't have any (which is usually good) so you're fine to use this.
08-18-2020 03:39 AM
Hi jofu,
you really should clean up your VI:
Set the "boolean 2" before the loop starts…
Other stuff:
08-19-2020 01:08 PM
Waw, I did the clean up and set the "boolean 2" before the loop starts. Now it works perfectly and looks good. Thanks GerdW!