LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop multiple while loops with one button

Solved!
Go to solution

Hi everyone, 

 

I have a login subvi and I want to have the user be able to know if caps lock is on while they are logging in. So I have a while loop for the log in portion and a parallel while loop checking if caps lock is on. How do I stop the caps lock loop from running when they log in/ cancel?

 

Thank you.

Kind regards,

TK

 

 

0 Kudos
Message 1 of 3
(132 Views)
Solution
Accepted by topic author Teekayy

The second while loop is indeed being closed by the local variable after you log in/cancel, maybe one suggestion I can make is to add a timeout event and move the code from the second loop to the main one so you can have just one while loop like the image below:

aascencio_0-1714080978261.png


(I also deleted the wait function)

Message 2 of 3
(116 Views)

Thank you!

0 Kudos
Message 3 of 3
(113 Views)