1. You cannot stop a for loop. It will run until the specified number of iterations has been completed.
2. Are your loops running in parallel or one after the other?
3. While loops can be stopped. Use them in place of for loops. Use a local variable, a functional global or action engine, or queues to pass the "Stop" command to the loops.
4. Can you put multiple channels into one data acquisition task and then separate the data later? Perhaps only one loop or a Producer/Consumer design is appropriate.
Lynn