LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Boolean values from 2 different sources to stop a while loop?

Solved!
Go to solution

I am working on a program for homework that states E5.4) Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. Be sure to include the Time Delay Exress Vi so the user has time to press the stop botton. 

 

I am doing this right now but it seems as though I can only connect one thing to the stop sign on th while loop. It won't let me connect a comparision of N and the iterations as well as the stop button to the stop sign on the while loop. So how would I be able to structure it so that it stops if it receives a true Boolean value from either of the 2 sources (whichever comes first)? 

 

Basically, I cannot wire the output of the comparison of N and iterations as well as the stop button to the stop button on the whlie loop to end it. Is there a solution?

 

Thanks!

 

 

0 Kudos
Message 1 of 3
(2,839 Views)
Solution
Accepted by topic author Rajster16

@Rajster16 wrote:

Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. 


Look in the boolean palette for something similar to the word hightlighted in red above. 😄

Message 2 of 3
(2,829 Views)

Literally figured it out moments before you posted! I appreciate the help.

0 Kudos
Message 3 of 3
(2,819 Views)