Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Signal Generation with NI-DAQ PCI-6030E

I generate a continous sine wave "output=dc+ampl*sin(2*pi*f*t)" using infinite regeneration of buffer. I want to finish generation at the end of next buffer (i.e. when ouput again equals dc level), but AO Clear.vi doesn't provide such an option. It always finishes generation at the moment it is called, so I have to reset to DC level. Is there any way, to stop generation right at the end of buffer?
Thanks a lot, Mike.
0 Kudos
Message 1 of 2
(2,537 Views)
Hi Mike,

One technique that might work is if you write a buffer of DC values when you want to stop your acquisition. This buffer of DC values should replace the half buffer onboard the hardware when it has finished its period. It will also continue to loop onboard. The key is to put at least 2 periods of your waveform in the onboard buffer. At that point, when you clear the analog output, it will already be outputting DC values.

Anyway, hope that helps. Have a good day.

Ron
0 Kudos
Message 2 of 2
(2,537 Views)