03-04-2026 02:34 AM
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.
Solved! Go to Solution.
03-04-2026 03:21 AM
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.
03-04-2026 03:40 AM - edited 03-04-2026 03:51 AM
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.)
03-04-2026 04:37 AM
Thank you