取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 2 条)
2,578 次查看

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 项奖励
2 条消息(共 2 条)
2,563 次查看