01-12-2023 06:39 AM
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.
01-12-2023 07:19 AM
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.
01-12-2023 07:20 AM
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?).