LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop two or more while loops running at different speed at the same time?

Solved!
Go to solution

Dear Tim,

Thank you!

However, there was a problem with this method.

RaymondZhao2017_0-1609883735759.png

When the STOP is initially a false value, I can still run the program.

so I add a logical OR and a STOP to prevent the program from running; however, this doesn't work; the program still runs although it stops after 8000ms.

Should I add a case structure on the event structure?

Thanks!

0 Kudos
Message 11 of 14
(406 Views)

You do understand that if you succeed in what you are trying to do, your processing loop will not complete its processing, right?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 12 of 14
(396 Views)

Whatever you did makes absolutely no sense.

 

Change the mechanical action back to "latch when released", get rid of all the green local variables and follow more closely the example given. All you needs is a TRUE constant in the stop event.

0 Kudos
Message 13 of 14
(392 Views)

Thank you so much!

0 Kudos
Message 14 of 14
(346 Views)