12-02-2008 03:07 PM
I have to sample a sine wave from a signal generator to get I and Q samples. Samples should be acquired unitl a stop button is hit. I want 4096 samples in to single buffer from the samples (FIFO). When the first buffer is filled the data in the first buffer must be sent to second buffer and the first buffer should always aquire samples.
I have no idea how to do it.
your help is appreciated.
12-02-2008 07:54 PM
What do you mean by "I and Q samples"?
Set your acquistion for continuous samples. Do a DAQmx read for 4096 samples. Build that into an array (your second buffer). Your first buffer (the DAQ board) will continue to acquire samples as long as its buffer is at least 4096 samples.
Look through the DAQmx examples in the example finder.