LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

6320 slow ADC read

Solved!
Go to solution

Hello,

 

I am using a PCIe-6320 that I am polling the ADC, in a very simple while loop.  The time per iteration of the while loop is approx. 9 millisec. While the interation time of the while loop without reading the DAC is 10 microseconds. That is huge difference.  Any thoughts, I am trying to poll at about 4 kilohertz which I would think would not be a problem.  BTW I am only reading one channel.

 

Regards,

 

Mike

 

0 Kudos
Message 1 of 7
(2,944 Views)

Mike,

 

Are you calling DAQmx Start prior to the loop which performs your read?

 

Dan

0 Kudos
Message 2 of 7
(2,940 Views)
Besides reading only one channel, how are you reading it. If you doing something like 1 sample mode, then you are doing software timed acquisition and that is very slow. If you are doing continuous acquisition, then your loop rate is a function of your sample rate and the number of samples. It's simple arithmetic.
0 Kudos
Message 3 of 7
(2,935 Views)

Yes

0 Kudos
Message 4 of 7
(2,923 Views)
Solution
Accepted by topic author mwalczak5603

Software, let me give harware timed a try.  Thanks.  It just seems so odd that just doing a simple read would take so long.

 

0 Kudos
Message 5 of 7
(2,922 Views)

One other thing that you may want to try for your software timed task.  In the DAQmx Channel Property Node, navigate to Analog Input->General Properties->Advanced->Data Transfer And Memory->Memory Mapping for Programmed IO Enable.  Set this property to true.

 

Dan

0 Kudos
Message 6 of 7
(2,918 Views)

That's cool I will try that too.

 

0 Kudos
Message 7 of 7
(2,915 Views)