Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use two DAQ cards in one Labview code? Current I'm getting error " error 200558 occurred at DAQmx Create Channel.vi. One task cann't contain multiple independent devices". Can someone help me?

The two DAQ cards are NI PCI-6070E & NI PCI-6052E. The Labview I'm using is labview 7 Express and the Window system is Window XP. I'm using NI SCXI-1000 chasis and SCXI-1102 & 1102B two modules plus a feedthrough SCXI-1180. 1102 is connected through SCXI-1349 cable to DAQ card 6052E while 1102B is connected through SCXI-1349 cable to DAQ card 6070E. SCXI-1180 is connected to 6070E through SCXI-1349 adaptor on the back of 1102B.
0 Kudos
Message 1 of 9
(5,164 Views)
Ok. I'm correcting one mistake in my previous set-up. Now my set-up is as follows:

SCXI-1102 & 1102B are in slot 1 & 2 in SCXI-1000 chasis respectively
SCXI-1102 is connected through SCXI-1349 cable to DAQ card NI 6052E (my dev2).
SCXI-1180 feedthrough is connected through another SCXI-1349 cable to DAQ card NI 6070E (my dev1), which is completely separated from the SCXI chasis.

Now my question is: How do I program my application so that I can run measurement test using both DAQ cards in one labview code? Can somebody give me an example code? Thanks.
0 Kudos
Message 2 of 9
(5,163 Views)
Could you please post your current code and daqconfig file? Also include more specifics on what you are trying to accomplish with your application. Thanks!
0 Kudos
Message 3 of 9
(5,163 Views)
Sarah, thank you for replying my question. It seems that I'm making progress everyday (smile). I'm able to run the test using both daq cards in my code now. But as I'm moving forward, I'm getting new questions too. How do I use one STOP button to control both tasks and how can I save data into one single file?
I attached my code here hoping you can get the specifics on my application by looking at the code. Thanks very much!
Thanks.
0 Kudos
Message 4 of 9
(5,163 Views)
I have attached a small screen shot of how you can use one stop button to stop 2 loops. Basically, all you need is to use a local variable. Also, would you mind posting how you solved the -200558 error for the benefit of other readers? Have a great day!
0 Kudos
Message 5 of 9
(5,163 Views)
I tried to create something like what shows in your picture but got error message when I ran the code. Could you post your code? To answer your question, I got rid of 200558 error by separating the other device (6070E Daq card) from the SCXI-1000 chasis since only one device should be connected to a SCXI chasis. Thanks.
0 Kudos
Message 6 of 9
(5,163 Views)
OK, the local variable problem has been solved by changing the Boolean operation from Latch to Switch. Thanks for your help on this issue.
Next question, if I want to save one data per second in my .lvm file while I can still display my data in Real-time form in my indicators, what should I add to control my Labview Write Measurement File express vi.?
0 Kudos
Message 7 of 9
(5,163 Views)
Within the LabVIEW Write Measurment File Express.vi property page, if you select "Append to file" it should add data to file each time the Express VI is set to "enabled". (based on the program posted earlier in this thread)

-Erik
0 Kudos
Message 8 of 9
(5,163 Views)
But each time when the Express VI is set to enabled, 100 data will be writen into the file. I think this is due to the fact that sample size on DAQmx Read.vi is set at 100. But if I reduce the sample size, the display of the signals will NOT reflect real-time signals. How do I only save one data each time when the Labview Write Measurement File Express.vi is enabled without changing the sample size on the DAQmx Read.vi? Thanks.
0 Kudos
Message 9 of 9
(5,163 Views)