LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My for loop pauses after completion of the prescribed number of loops.

I've created a FOR loop to alternate the value of an analog output between two setpoints. Since there are only 2 setpoints there need only be 2 complete 'loops'. After these two loops are complete the program pauses before continuing restarting the loop. I used the FOR loop instead of a WHILE loop because I use the value of the loop number to change the value of the output.
0 Kudos
Message 1 of 4
(2,699 Views)
Maybe you are initializing DAQ before the For Loop executes or you have a Wait timer outside of your For Loop.
0 Kudos
Message 2 of 4
(2,699 Views)
I have my wait timer inside... How do I know if I'm initializing DAQ before the loop executes?

I placed the entire FOR loop in a while loop and the pause between loop cycles when away.
0 Kudos
Message 3 of 4
(2,699 Views)
Please post your code, or a screenshot thereof so we can better understand your problem.

Thank you
0 Kudos
Message 4 of 4
(2,699 Views)