LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I run simultaneous for loops, is it possible?

I am running a few scc-rly01 's on a sc-2345 block. Each one has a different cycle time and # of iterations, if I put for loops in a while, will they all run at the same time or random times?
Message 1 of 3
(2,771 Views)
If you want loops to run in parallel, you must ensure that there is no wired data dependency between them. They will start at virtually the same time and each loop will run at its own rate.

If they are all in he same while loop, the while loop will only cycle again once ALL FOR loops have finished, the faster loops that finish earlier will have a longer pause.

If all loops should run continuously, each should be in its own while loop. In LabVIEW 7.1, use a couple of independent timed loops.

If this does not answer your question, please provide more specific details.
0 Kudos
Message 2 of 3
(2,759 Views)
Thanks for the help!
0 Kudos
Message 3 of 3
(2,744 Views)