LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Method for accessing multiple DAQ cards

Hello, I am trying to access two analog-input cards in a "ping-pong" type fashion with LabVIEW 7.1.

The two cards are PCI-6052E DAQ cards (call them "B" and "C"). What I'd like to do, is get data in this fashion: B/ai0, C/ai1, B/ai2, C/ai3, B/ai4 ..... etc. However when I try to do this I get this error :

"Error -200558 occurred at DAQmx Create Channel (AI-Voltage-Basic).vi.

Possible reason(s):

One task cannot contain multiple independent devices.

Create one task for each independent device.

Device: B
Device: C"

So my question is, IS there a viable way to do this? I have attached my .vi that contains the trouble. Any help would be GREATLY appreciated! Thanks!
0 Kudos
Message 1 of 2
(2,682 Views)
One task cannot span multiple devices. Your problem is that your physical channels in DAQmx Create Channel reference two different devices. You cannot create tasks like that. If you want to ping pong between devices, you'll have to do it with single point reads like this:

B/ai0 >> DAQmx Read Single Channel Single Sample
C/ai1 >> DAQmx Read Single Channel Single Sample
etc...

Hope this helps.

Regards,
Erin
0 Kudos
Message 2 of 2
(2,682 Views)