Error -201025 or -200462 in Output Task

Updated Nov 8, 2018

Reported In

Hardware

  • Multifunction I/O Device

Driver

  • NI-DAQmx

Issue Details

I have my USB DAQ device set up for a hardware timed output task, when I run my program the DAQmx Start Task function I receive: 

Error -201025 
Non-buffered hardware-timed operations are not supported for this device and Channel Type. 

or

Error -200462 Generation cannot be started because the output buffer is empty.

Solution

If you are trying to run a task in hardware-timed single point mode, first make sure your device supports this mode. The most common cause of Error -201025 and Error -200462 is a failure to load the buffer before starting the task. Doing so creates a non-buffered, hardware timed task, which is not supported by USB DAQ devices due to the inherent latency of the USB bus. 

Without calling the DAQmx Write before the DAQmx Start function, your device will attempt to pull samples from a buffer that does not exist. You can eliminate the error by calling a DAQmx Write before the DAQmx Start function.

An example of this can be found in the LabVIEW example, Voltage - Finite Output.vi  found at
Help » Find Examples » Browse » Hardware Input and Output » DAQmx » Analog Output » Voltage - Finite Output.vi

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 code outputs 0V and 3V to Ao0 and Ao1 respectively. In order to eliminate error -200802, two samples of data are written per channel

WAS THIS ARTICLE HELPFUL?

Not Helpful