Error -200022 Or -200587 When Using NI-DAQmx

Updated Apr 26, 2018

Reported In

Hardware

  • cDAQ-9174
  • SCXI-1349
  • CompactDAQ Chassis

Software

  • LabVIEW
  • SignalExpress
  • Measurement & Automation Explorer (MAX)

Driver

  • NI-DAQmx

Issue Details

I am creating a DAQmx task in LabVIEW, using a Test Panel for my device in Measurement & Automation Explorer (NI MAX), or creating a task in SignalExpress. When I try to start the task I get one of the following errors: 

Error -200022: Resource requested by this task has already been reserved by a different task.  

Error -200587: Requested operation could not be performed, because the specified digital lines are either reserved or the device is not present in NI-DAQmx. 

Solution

This error occurs when a task is already running on the requested device or when a particular line or channel is already reserved on the device. To resolve the error, check the following in your DAQmx tasks:

  • Ensure the resources are reserved beforehand if you are using digital IO
  • Ensure concurrent tasks do not exceed the maximum number of tasks that device can support.

Additional Information


For more information on how to reserve lines and how many tasks you can create, please refer to:

WAS THIS ARTICLE HELPFUL?

Not Helpful