Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Input sampling frequency quantization

I am writing an application where the end user will choose the DAQ device and the sampling frequency to use.  I am using the DAQmx C library.

 

How can I find the frequency or period quantization for the device via software?  For example, if the user enters 1234 Hz for the sample frequency,  how close to 810.373 us will the period be?  I need to assign reasonably precise timestamps to the samples.

 

The C API help describes a few functions that report the max sampling rate, but that is not necessarily the same precision as the timing clock.  The max sample rate has to include things like settling time. 

 

Thank you,

CV 

0 Kudos
Message 1 of 2
(2,734 Views)

Hello CVilla,

 

Thanks for your post!

 

I see you are needing to get the sampling rate for the device that you are using. I see you found the MAX sampling rate which of course returns the MAX rate. There is also a function called  "DAQmxGetSampClkRate" which returns the sample clock rate. Then you could get the period from that number. I have to admit as I am not much of a CVI programmer but the picture attached are the results from using an M-Series board with LabVIEW. Let us know if this helps/guides you toward getting your application up and running and I wish you the best!

 

Cheers!

 

Corby_B

http://www.ni.com/support 

0 Kudos
Message 2 of 2
(2,718 Views)