LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sampling and buffering the samples.

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. 

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

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.

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