Hello Clecio,
Error -200016 is a buffer underflow error that occurs in the analog output operation. This error indicates that your system is unable to transfer data fast enough from the memory in your system to the buffer onboard the device in order to keep up with rate at which the device is outputting data. The error description lists some possible solutions to this problem. The first suggestion is to decrease the sampling rate of the analog output task. This will reduce the rate at which data must be transferred to the device, hopefully allowing your system to keep up. The second suggestion is to change the data transfer mechanism from interrupts to DMA (direct memory access), since DMA allows data to be transferred across the PCI bus to the device much faster. Unfortunately, from your error code, it looks like you are using the PCI-6036 E series device, which only has one DMA channel available. This means that if you have an analog input and an analog output task running at the same time, only one of them can use DMA to transfer data. However, our newer M Series devices have 6 DMA channels, which can really improve performance when running multiple tasks simultaneously on the same device. You can see from the VI's above how to manually switch between interrupt and DMA transfer mechanisms. I hope this information helps,
Travis G.
Applications Engineering
National Instruments
www.ni.com/support