Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-6052E gives error -200019 when acquiring multiple input channels

Hello all,

 

I am acquiring multiple input channels on my PCI-6052E and can not reach the sum sample rate of the card (which is 333kS).

When using only one channel 333kS works fine

When using 8, i can only set a sample rate of ~ 10kS, otherwise I get an error -200019.

 

What I do is the following:

    error = DAQmxCreateTask("", &task);
    error = DAQmxCreateAIVoltageChan(task,"Dev1/ai0:7","",DAQmx_Val_Diff, -10.0, 10.0, DAQmx_Val_Volts, NULL);
    error = DAQmxCfgSampClkTiming(task,"",m_SampleRate,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000000);
    error = DAQmxRegisterEveryNSamplesEvent(task, DAQmx_Val_Acquired_Into_Buffer,m_chunkSize,0,EveryNCallback,this);

 

And in the callback function
    error = DAQmxReadAnalogF64(task,DAQmx_Val_Auto,10.0,DAQmx_Val_GroupByChannel,data.get(),bufferSize,&read,NULL);
And here i get the error -200019

 

I also tested a simulated device, and it works with full sample rate.

 

Thanks in advance...

 

Best regards,

Michael

0 Kudos
Message 1 of 4
(3,151 Views)

Hello Michael,

 

Maybe the following forum site can help you:

http://forums.ni.com/t5/LabVIEW/limited-sampling-rate-on-PCI-6052E/m-p/1529124#M568803

 

If not, I would like to help you and have the following question: Which programming language and which platform do you use?

 

Regards,

 

Stefan

 

----

 

Stefan Egeler
Applications Engineer
NI Germany
0 Kudos
Message 2 of 4
(3,131 Views)

Hello Stefan

 

I am using NI-DAQmx with visual c++ 2010 running on Windows7 64 bit. Hardware is intel i5-760 (quad core, 2.8G).

Please note that I posted the commands on my initial message, but they are basically the same as the ContAcq-IntClk example.

I also tried to get that example running with the same result. See attachment

 

The answer you suggested seems to be the right one, but I can not see it, since I don't use labview.

 

Maybe you can translate it to C ?

 

Thanks for your help,

 

Best regards,

Michael

 

0 Kudos
Message 3 of 4
(3,124 Views)

Hello Michael,

 

We tested a 6052E with the following file (it is a slightly modificated version of the example file you also used). We got up to 50 kS per Channel, which is even more than specified. If we use more than 50 kS per Channel, error -200019 occurs.

 

Please test the file on your system.

 

Best regards,

Stefan

 

----

 

Stefan Egeler
Applications Engineer
NI Germany
0 Kudos
Message 4 of 4
(3,102 Views)