Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

intermediate result display

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!

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

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/

0 Kudos
Message 2 of 2
(2,616 Views)