04-20-2011 04:25 AM - edited 04-20-2011 04:29 AM
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
04-21-2011 09:13 AM
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
----
04-21-2011 10:28 AM
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
04-27-2011 03:29 AM
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
----