10-16-2008 12:08 AM
Hi all,
I am using a DAQ USB 6251. Basically what I need it to do is pretty simple.
* DAQ card generates sine wave - 23Hz and 2.5V with 2.6V offset (i.e. D/A)
* This signal is then used to drive a device, which then generates an output to be monitored by the DAQ card (A/D)
* This all, works fine, but now I would like to average the data (to improve signal-to-noise ratio) display and save it.
Problem:
1) For averaging I tried putting a FOR loop in the while look where data acquisiton is done. But, this doesn't work as it just keeps averaging the same data. So what I need to do is to wait for one set of data to come out, store that, do the same and cumulate, then when the average number is reached, it just divides the entire cumulated array. I think I would need to use queuing, but am unsure how to do it.
Attached is the vi. and a screenshot
Thanks
10-16-2008 12:58 AM - edited 10-16-2008 12:58 AM
10-16-2008 01:24 AM
Thanks Altenbach,
But like I said I have tried using this in the while loop with shift register. Doesn't improve signal-to-noise, as its just adding the same buffer. I need to wait, accumulate the buffers, add the buffers (cumulated), then divide by number buffers.
Zientist
10-16-2008 02:19 AM
zientist wrote:But like I said I have tried using this in the while loop with shift register. Doesn't improve signal-to-noise, as its just adding the same buffer.
I could not see this in any of the code you have attached. Can you show us your failed attempt?