Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I determine the available sample rates of 4462 card?

I would like to determine the available sample rates for a 4462 DSA card using NiDAQmx.  When the user of my application selects a desired sample rate when setting up the card for analog input, I would like to be able to report back to them what the closest actual sample rate will be, before acquisition actually starts.
 
With the traditional daq API, I could use the DAQ_Set_Clock() function.  I am unable to find the equivalent function using NiDAQmx.  I am also unable to find the algorithm that the DSA driver uses to determine what sample rates are valid.
 
Is there a way to determine what the sample rate will be without setting up the acquisition first?
 
Thanks.
 
Kile
0 Kudos
Message 1 of 2
(6,688 Views)
Hi Kile,

Thanks for contacting NI.  You can certainly determine what the actual sample rate will be before starting the acquisition.  This is done using the DAQmx Timing Property Node Sample Clock >> Rate as shown below.  If you place this after the DAQmx Timing VI and before the DAQmx Start VI as shown below, it will report the nearest achievable sample rate (rounding up).



Hope this helps!

Message Edited by Jarrod B. on 09-05-2006 03:06 PM

0 Kudos
Message 2 of 2
(6,666 Views)