LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Start, stop and restart while loops

Hi, my qustion is i have 2 example a and example b. Example b lets u start counting up in seconds when u want to. as long as the toggle switchs are in correct position. it also lets u start, stop and restart if need be. i want to be able to that with example a, but for some reason the while loop always sets of running independent of what position the the toggle switch. Any help greatly appreciated.

Thanks Stuart
Download All
0 Kudos
Message 1 of 4
(4,314 Views)
A LabView While loop is like a C do loop: it always executes at least once. It checks the condition at the end of each iteration.
0 Kudos
Message 2 of 4
(4,314 Views)
Hi,
You should build connection in the three switchs. For example, to stop the program, you should connect the stop switch to the inter two loops:(!stop V Boolean), (stop ^ Boolean2).
0 Kudos
Message 3 of 4
(4,314 Views)
An example as the attachment.
0 Kudos
Message 4 of 4
(4,314 Views)