Additional Information
If you now get error -200802 due to a zero output buffer size, increase the amount of data that you are writing to the buffer to increase its size.

This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW block diagram.
This code outputs 0V and 3V to AO0 and AO1 respectively. In order to eliminate error -200802, two samples of data are written per channel