LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

making conditional while loop

Dear all,

Maybe my question is easy, but simply I can not find the solution !!

 

I would like to have a while loop in my labview program, in which I am able to enter and exit by pressing a switch.

I mean: I would like to have a switch in the front panel of my program, if the switch is ON the while loop is executing, if the switch is OFF the while loop is not executing.

 

I thoght that probably my program should have a while loop to always check the status of the switch. But I got stuck with different while loops and conditions and coluld not understand how it works !!

 

Thank you for helping me.

0 Kudos
Message 1 of 2
(2,682 Views)

Perhaps what you really need is a State Machine.  What else is the VI supposed to be doing?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,665 Views)