LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pause button in a For Loop

Hi everyone, i have some problems with the implementation of a 'Pause Button' for a 'For Loop'; I am using a QMH, in the 'consummer part' i am running 2 "For Loops" one inside the other, i found a way to pause a 'while loop', then i decided to do a simple VI to make sure if it is possible to Pause a For Loop with that idea, and the answer is 'yes', at the moment I use this idea in the main program, i realise when i wanna pause the for loop to see some details in a Table indicator, the button was not doing anything, as if it were not enable. Ty for your answers.

0 Kudos
Message 1 of 3
(844 Views)

If your purpose is to pause the program for debugging purpose, I would recommend using breakpoint instead. The only possible way of pausing a for loop that I can think of is by using a state machine while loop with indexing to mimic the behavior of a for loop.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 3
(825 Views)

Your description is not sufficient to explain your problem. Please show us your VI.

 

(My guess is a dataflow issue. Why do you have FOR loops and why is one inside the other?).

0 Kudos
Message 3 of 3
(824 Views)