ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop 2 while loops into another

hi,
I'm a beginner in labview and i've got  problem!!!
My program is composed of 3 while loops (2 into one) and i'd like to stop it with only one STOP button.
I can't use local variable with stop so i'm wedged!!!
I use LV 6.0
I think it's very difficult but .....
Sorry for my english, it is very bad!!!
 
Thanks!!
 
Lacoule
0 Kudos
Message 1 of 5
(3,294 Views)
Lacoule    ,
post a screenshot of your problem, please.

0 Kudos
Message 2 of 5
(3,289 Views)
Ok it's good!!
 
i've used my stop with local variable and then i've changed his mechanical action.
 
thank you!!
 
lacoule
0 Kudos
Message 3 of 5
(3,287 Views)

Hi Lacoule,

I guess you could not use local variables for boolean controls with a latch function, only a switch function works with local variables.

One simple way to achieve what u want is, (assuming that you stop button is in the inner loop) use stop button to stop the inner + enter a pre-defined string or numerical value in a global or local variable and when the control comes out to the outer while loops, just use a  compare function to generate a true state and can stop the other two loops.

I hope this helps.

-Mohan.

 

 

0 Kudos
Message 4 of 5
(3,281 Views)

hi mohan,

 

thank for your help but i have put my button on switch and in this case my programm is ok!!

But your idea is a good one and i haven't think of it.

thanks

 

lacoule

0 Kudos
Message 5 of 5
(3,274 Views)