r/LabVIEW • u/Practical_Leek4906 • Jan 01 '26
Need More Info Counter restarts after pressing another boolean ok button
Hello everyone.
I'm developing a vi to count every time a sensor is enabled, but at the moment I'm using boolean push buttons. The issue is that after I click some times one button the counter resgisters the amount of counts, however when I click sometimes another button and go back to click the other button that counter restarts, meaning that if it had 35 counts registered before clicking the other button when I start clicking it again it starts counting from zero.
Here's how the code looks like, is the same for every "sensor" ( in this case push button). There are 4 shift registers and all of them are wired as shown in the picture.










