Hi Neil,
Error -200016 will occur when the onboard FIFO on the DAQCard-6036E underflows, that is, when there is no data in the onboard memory from which to generate a sample. Normally, the card will periodically generate an interrupt to tell DAQmx that it needs to transfer more data to the onboard FIFO. However, if the computer is handling a large number of interrupts from other devices, it may take longer for the system to get around to filling the FIFO, leading to the condition that you are experiencing.
You can control when the card signals the interrupt through the DAQmx Channel >> Analog Output >> General Properties >> Advanced >> Data Transfer And Memory >> Data Transfer Request Condition property. The three available values are Onboard Memory Empty, Onboard Memory Half Full or Less, and Onboard Memory Less Than Full. The interrupt is signalled when the FIFO meets the selected condition.
I do not know the default value of this attribute is, but I would suggest changing the Data Transfer Request Condition and seeing if this has any effect on your application. I might first try changing it to Onboard Memory Half Full or Less because this provides a good tradeoff between the number of interrupts the card may generate (more interrupts can make the computer seem less responsive to applications and other drivers) and the amount of time the OS has to getting around to putting more samples in the FIFO.
Secondly, DMA mode is not supported on the DAQCard-6036E, so I would not try changing the Data Transfer Mechanism like the erroneous error (ha!) message says.
Hope this is helpful.
Aaron