LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we run two while loops independently in one application?

I am acquiring two channels using PCI-6052.both channels to be read at 2ks/s,but I want to scans read at a time different for each channel,So I put two AI-read vi's in two different while loops.but the second while loop waits until the first is completed.Can we run independently both while loops?
0 Kudos
Message 1 of 2
(2,585 Views)
Dear Haider Abbas,

you can scan two different channels at the same time with the same AI Read if your hardware device is cabable of it, e.g. you must have one A/D converter for each channel. If you have one A/D converter only and your channels are multiplexed then it won't work.
You can try running both loops indepentendly by using delays but in this case the data acquisition will not be at the same time. You have also to consider that every time you call for AI Read the DAQ card will be initialised with takes some time

Hope this will help you.

Stephan
0 Kudos
Message 2 of 2
(2,585 Views)