Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

limited sample rate. DAQ 6323

Hi!

 

Quesion from novice.

I am using Measurement Studio in VS2005.

I get maximum 1000 samples on the reading request (finite acquisition) independently from the rate and sample number I supply.

 

Where is my problem?

 

Thank you.

andrey 

 

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

Hello Audrey,

 

I'm assuming you are using the Acq-Int Clk example (Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Int Clk).  This example does a finite acquisition and reads 1000 samples at a time.  It only reads one time since the overall finite samples to read is set to 1000.  This functionality is specfied in the following code lines in the example:

 

float64     data[1000]; //1000 is the amount of stored points. Increase this to store more points for your acquisition

...

DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",10000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1000)); // The 1000 specifies the number of samples to acquire for each channel in the task

...

DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val_GroupByChannel,data,1000,&read,NULL));  // The first 1000 specifies the number of samples, per channel, to read.  Te second 1000 specifies the size of the array, in samples, into which samples are read.

 

I would suggest referencing these functions in the NI-DAQmx C Reference Help by navigating to Start » All Programs » National Instruments » NI-DAQ » Text Based Code Support » NI-DAQmx C Reference Help for more information.

Regards,
Roman Sandoval | National Instruments | RF Systems Engineer
0 Kudos
Message 2 of 2
(2,674 Views)