LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop Condition not working

I have been having some trouble in exiting a loop in a program I am working on, and suspected that, for some reason, the loop stop button is not really doing anything, so I decided to do a sanity test and create a whole blank program with an empty vi that has nothing but a loop and a stop button to stop it. The loop never stops, and the program never exits. This has been really driving me crazy, as no forum post seems to have ever mentioned such a problem, and I have written programs in LabVIEW many times before. Now, even when I open these old programs, at least the ones that do have a stop button in a while loop, they too have mysteriously stopped working out of a sudden. Am I going crazy and really just missing a stupid little thing, or is this some kind of more complicated problem with LabVIEW? The stop condition is set to stop when True and the button type or latching type has not changed anything, not that it even should anyway, as it should stop when true, no matter what. I tried restarting the PC and labview. I even changed the boolean to a constant that is always either true or false and nothing changed still.

0 Kudos
Message 1 of 7
(159 Views)

-deleted-

Certified LabVIEW Architect
0 Kudos
Message 2 of 7
(141 Views)

No one will be able to help you unless you attach the .vi.

0 Kudos
Message 3 of 7
(93 Views)

Are you inadvertently pressing Run Continously instead of the standard Run button?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 4 of 7
(87 Views)

do you have the button outside the loop so the value is always constant inside the loop?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 5 of 7
(76 Views)

posted verbatim and answered on reddit already.

 

Picture there was included and the problem was the "continuous run".

 

 

altenbach_1-1762961124880.png

 

Message 6 of 7
(63 Views)

As a reminder, there is still this idea comment stating that the "continuous run" button should only be shown on the diagram window, not on front panel window.

0 Kudos
Message 7 of 7
(41 Views)