LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop inner while loop inside the event structure

Solved!
Go to solution

Hello Everyone, 

I am facing comman newbee LabVIEW problem. But I can not understand where to start. 

I have a while loop inside the event structure. when event "RUN button" triggers, I can not stop the inner while loop. 

I have also read some articles that say it is not a good structure to have. But somehow also fail to implement a different structure. 

Please have a look at my VI. And if possible, give me a good example for the referance. 

0 Kudos
Message 1 of 4
(236 Views)

Event cases should typically not contain interactive code. As a dumb workaround, you can set the event to not lock the front panel until it completes.

0 Kudos
Message 2 of 4
(221 Views)
Solution
Accepted by Rshah31

See if this can give you some ideas...

 

(Note that the VI is set to clear indicators when called, so the indicator shows zero until the run button is pressed.)

0 Kudos
Message 3 of 4
(205 Views)

Thank you

0 Kudos
Message 4 of 4
(185 Views)