Hi all,
I am able to create an continuous analog output which is set as "Do-not-regen". I can write buffer on the fly and set "Next write is last" when reaching end of the waveform. Thanks to Jorr-El's helpful suggestion on a separate thread: http://forums.ni.com/t5/Multifunction-DAQ/Access-analog-output-buffer-on-fly/m-p/3343628
The question I have is how may I stop this continuous task? The way I write the buffer is in the registered EventN callback function, but by the time it writes the end of the waveform, it is not the time when the task finishes or outputs the end of the waveform. I cannot register Done event since the task is continuous, so I don't know what would be the best way to terminate task when it finishes the whole waveform. I am using X-series DAQ and any help would be appreciated.