02-25-2011 10:15 PM
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
02-28-2011 08:45 PM
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.