From 08:00 PM CDT Friday, August 12 - 01:00 PM CDT Saturday, August 13, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the DAQ read at its max rate

Solved!
Go to solution
Hello,

I use a PCIe 6361 to acquire voltages from 7 AI s and the rate of acquisition is an order of magnitude less than expected.
Following is what I did where avg is the number of samples read per channel.

DaqStart=Timer ();
DAQmxReadAnalogF64(collectHandle,avg,10.0,DAQmx_Val_GroupByChannel,rawdata,avg*7,&numRead,NULL);
DaqEnd=Timer() – DaqStart;

For instance, with 1000 samples per channel (total of 7000 Samples from 7 channels) the time it takes to read is 0.07 seconds. I.e. 0.1 MS/sec. I get the same rate for any number of samples read. I am wondering why this is the case when the PCIe-6361 is supposed to read 1 MS/sec in multichannel acquisition.

Specs of the PC : AMD 3.5 GHz 6 core, 16 GB RAM, ASUS M5A97 LE R2.0 Board.

thabks,

Naba
0 Kudos
Message 1 of 2
(2,628 Views)
Solution
Accepted by topic author nabs_nu

How are you configuring the acquisition task?

You can set the acquisition rate using DAQmxCfgSampClkTiming: are you using it?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,608 Views)