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 11
(237 Views)

-deleted-

Certified LabVIEW Architect
0 Kudos
Message 2 of 11
(219 Views)

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

0 Kudos
Message 3 of 11
(171 Views)

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

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 4 of 11
(165 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 11
(154 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 11
(141 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 11
(119 Views)

@altenbach wrote:

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.


And everytime someone clicks it you should get a pop-up with "Are you sure" and a second one "Are you really sure?" before starting. 🙂

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 11
(59 Views)

I just accidentally clicked on Stop instead of Pause. The consequences when debugging sometimes...
I wish Ctrl+. would work when the Stop button is disabled.

Certified LabVIEW Architect
0 Kudos
Message 9 of 11
(53 Views)

Where ctrl+. doesn't work, this usually does.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 10 of 11
(17 Views)