LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How programmatically get the list of supported sample rates (for DAQmx NI9234 9233 9237)

Hi all,

I have tried to set sample rate for the accelerometer module 9234 but I've realized that the sample frequency I set does not  correspond with the actual one.

For example, set frequency = 5 kHz - actual frequency = 5120 Hz

I've found this article 

http://digital.ni.com/public.nsf/allkb/593CC07F76B1405A862570DE005F6836

This article reports that NI 9233, NI 9234, and NI 9237 modules supports only specific sample rates. If the specified sample rate does not match one of the allowable values, then it gets coerced up to the next valid sample rate.

Is there a way to programmatically get the list of supported sample rate?

 

Thanks all

 

 

0 Kudos
Message 1 of 3
(2,821 Views)

Hi,

unfortunately there is no way to programmatically determine the list of supported sample rates for these devices when used with DAQmx (in FPGA target it is possibile).

You can read the actual Sample Clock Timebase Source property (shown in the document you linked) and then apply the formula to get all possible values.

Bye,

 

Licia

0 Kudos
Message 2 of 3
(2,781 Views)

Check in your <LabVIEW Folder>\vi.lib\LabVIEW Targets\FPGA\cRIO\shared\nicrio_ModuleControls

There are multiple "DataRateRing"s for different cards. You might use those as reference or you might try to parse the strings in the rings to actual data rates.

0 Kudos
Message 3 of 3
(2,776 Views)