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 4
(2,721 Views)
Not possible
0 Kudos
Message 2 of 4
(2,721 Views)
You could sample both channels at higher rate (4K/s), then downsample for each channel.

-Joe
0 Kudos
Message 3 of 4
(2,721 Views)
I'm not familiar with the PCI-6502 but it sounds as though what you might want to do is have a third loop that performs the acquisition from both channels and passes data out to the first and second loops using queues or some other method....
0 Kudos
Message 4 of 4
(2,721 Views)