LabVIEW Error "-200561" Occurred at DAQmx Analog Output.vi

Updated Apr 26, 2023

Reported In

Hardware

  • cDAQ-9174
  • NI-9265

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

I am trying to generate an analog output signal with a DAQmx Analog Output.vi, but I get the following error: 
Error - 200561 occurred at Current-Continuous Output.vi

Possible Reason(s):

Attempted writing analog data that is too large or too small. 
Change Minimum Value and Maximum Value to reflect the range of the channel.

Data: -5.877853e-3
Specified Range Minimum: 0.0
Specified Range Maximum: 20.0e-3

This error is shown in the following dialog box.

Solution

This error can happen in any scenario where the analog output is out of the range specified on the DAQmx Create Virtual Channel.vi.

How to solve the error: A workaround to solve this error is to connect the offset input of the Basic Function Generator.vi to the Amplitude input, this will make an offset of the same value of the original amplitude of the signal; therefore, all the values will now be positive or above zero.


The signal with the offset would look like this:

 

Additional Information

Specifications of the NI-9265 Module: The NI 9265 is a 4-channel, 0 mA to 20 mA, 100 kS/s simultaneously updating C Series analog output module for any CompactDAQ or CompactRIO chassis. It is ideal for interfacing and controlling industrial current-driven actuators at high rates. The module has built-in open-loop detection, which generates an interrupt in software when an open loop is detected as well as zeroing outputs to ensure safety and avoid driving actuators at system power-on. The NI 9265 requires a 9 V to 36 V external power supply and includes a channel-to-earth ground double isolation barrier for safety and noise immunity.
This means that this module does not support negative values of current, it only supports currents from  0 mA to 20 mA.