Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

A question about seamlessly acquiring samples using DAQmxRegisterEveryNSamplesEvent

Hi all,

 

I'm currently using NI USB-6008 device and writing a program in ANSI C to acquire voltage samples from an embedded system board.

 

The problem is that I need to acquire voltage samples while running my program, but the basic program only reads the samples after the execution and cannot get the samples exceeding the buffer in the device.

So I used DAQmxRegisterEveryNSamplesEvent function to save the voltage samples after a certain amount of samples acquired. This is done in the pre-registered callback function. It seemed to be fine at the beginning, however, soon realized that I cannot get the voltage samples while running callback function.

As far as I searched, the feature called "Buffered Operations" from the device supports acquiring samples onto the device buffer while running a callback function. But I'm not quire sure about it.

 

My question is that if there is a way to acquire voltage samples seamlessly with NI USB-6008 device, which doesn't support Buffered Operations?

 

Thanks in advance

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