Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I obtain the pda sampling frequency for a CF-6004?

I am sampling with a CF-6004 card and have set up my sampling frequency in the NI-DAQmx base task configuration utility. When my vi runs, I want to programmatically find out what the sampling speed is and save the value to a file. Is there any way to do this? In between runs, I would like to select a different sampling speed using the DAQmx Base task control.
I am running this on an Archer field pc with windows mobile 5.0.

Thanks,

Jim
0 Kudos
Message 1 of 2
(2,867 Views)

Hello,

There is no way to programmatically get the actual sample rate, since there are not property nodes in DAQmx Base.  After you set the sample rate with the DAQmxBase Timming.vi, there is no way to probe the value again.  You can save the controller or constant value for the rate input to file.  Property nodes are available with the DAQmx driver, but I understand why you are limited to the Base version due to your hardware.

For selecting a different sample rate, you will have to restart the task.  Using either Cont Acq&Graph Voltage-Int Clk.vi or Acq&Graph Voltage-Int Clk.vi examples that download with the driver, you will have to restart the code to change the sample rate.  Please clarify if I misunderstood your question.

 

Samantha
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,835 Views)