08-02-2005 09:34 AM
Thanks,
Jerry.
08-03-2005 03:41 PM - edited 08-03-2005 03:41 PM
Hi Jerry-
The analogous function in NI-DAQmx is "DAQmxGetReadAvailSampPerChan." This function is defined in the NI-DAQmx C Reference Help ( Start>>Programs>>National Instruments>>NI-DAQ ) as:
int32 __CFUNC DAQmxGetReadAvailSampPerChan(TaskHandle taskHandle, uInt32 *data);
DAQmxGetReadAvailSampPerChan gets the Status >> Available Samples Per Channel property.
This function will return the available samples per channel currently buffered for each channel in the task. This single number will be the same for each channel and will return as a uInt32 datatype.
If you would like to use the DAQmxReadAnalogF64 function by itself in a continuous acqusition you can specify a "-1" for the numSampsPerChan parameter to return all samples that are currently available. The behavior with this setting is slightly different for finite acquisitions and is explained in more detail in the NI-DAQmx C Reference Help documentation for the DAQmxReadAnalogF64 function.
Hopefully this helps-
Message Edited by Tom W. on 08-03-2005 03:41 PM
Message Edited by Tom W. on 08-03-2005 03:41 PM
08-03-2005 03:48 PM
Thanks Tom. I found it myself. Too bad there are no C++/C examples available ( at least I could not find any ).
Jerry.
08-03-2005 04:05 PM
Hi Jerry-
I forgot to mention that ANSI C examples are in fact installed with the driver at "C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C" on your local drive.
Thanks-
08-03-2005 04:18 PM
08-04-2005 12:51 PM