Hello,
see the attached example I use for a PCI-7344.
You must just know that these AO have an offset: If you set "0" as input, you will perhaps have between -150..+150mV at the AO. This can be annoying depending what you do with it. However, this offset doesn't vary over the time.
In the attached VI, you can give this offset one time for ever.
Hope this help.