Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Number of samples read are not correct

Solved!
Go to solution

Hello,

 

I'm using NI CDAQ Card 9234 and CDAQ chassis 9174.

When I try to read N samples I'm not getting the specified samples.

Below are the samples specified and no. of samples I'm getting.

 

Specified(Rate and sample/ch) -               Actuals

6000-                                                             6400
20000-                                                           25600
13000-                                                          14766
25000-                                                          25600
30,000, 31000, 35000, 40000-                     51200(Max)

 

Please find the Attached VI

 

Thanks,

Download All
0 Kudos
Message 1 of 5
(912 Views)
Solution
Accepted by Iamakash

This is expected. See Valid Sampling Rates for NI DSA, CM C Series and SC Express Devices

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
Message 2 of 5
(877 Views)

An additional little tip:

 

If you look over the shipping examples for AI, you'll see that after calling DAQmx Timing to "request" a sample rate, many (most?  all?   Dunno for sure, didn't do the homework to check them all) will follow up by querying a DAQmx Timing property node for the sample rate.  The query will give you the real true actual sample clock rate (provided you're using the default internal clock to derive it).  The vast majority of AI devices only support specific discrete rates based on dividing down a master clock by some integer.   

 

With some devices, such as your own for example, the # of supported integer divisors is pretty limited, so there are pretty sizeable gaps between the available frequencies.  Others put fewer restrictions on the integer divisors allowed, other than requiring a certain minimum that corresponds to the max sample rate the rest of the circuitry is rated to handle.   With those devices the frequency gaps are considerably smaller, but there still *are* discrete steps between allowed frequencies. 

 

So it can be a good general practice to do like the examples show, and make the habit of querying for the actual sample clock rate right after attempting to set it.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 3 of 5
(839 Views)

Thanks for the solution 🙂

0 Kudos
Message 4 of 5
(801 Views)

Thanks for the explanation 🙂

0 Kudos
Message 5 of 5
(799 Views)