11-02-2015 08:50 AM
Hi, I have an analog input task which slowly reads finite amount of data. I need to display intermediate results :
request N points
start
while all data not ready
get what is ready (M pts)
diplay what is ready (1st to M pts)
wait a little
diplay all (1st to N pts)
clear
what is the best implementation of this protocol in ANSI C ? if i use DAQmxReadAnalogF64 do i need to append each ready chunk of data myself ?
Thanks!
11-03-2015 04:34 PM
Hi Boris,
It depends on how you configure the DAQmxReadAnalogF64. The numSampsPerChan determines the number of samples, per channel, to read.
If the task acquires samples continuously and you set this parameter to -1, this function reads all the samples currently available in the buffer.
Take a look at this page and see if that helps answer your question:
http://zone.ni.com/reference/en-XX/help/370471W-01/daqmxcfunc/daqmxreadanalogf64/