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
(231 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
(216 Views)
Solution
Accepted by topic author 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
(200 Views)

Thank you

0 Kudos
Message 4 of 4
(180 Views)