This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Error -200022 or -200587 When Using NI DAQ Device

Updated Feb 12, 2020

Reported In

Hardware

  • CompactDAQ Chassis
  • Multifunction I/O Device

Software

  • Measurement & Automation Explorer (MAX)

Driver

  • NI-DAQmx

Issue Details

I am creating a DAQmx task in LabVIEW using a Test Panel for my DAQ device in Measurement & Automation Explorer (NI MAX) or running an application. When I try to start the task/application 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, ensure the following:

  • Ensure there are no other DAQmx Tasks running while the VI is executing
    • Utilize DAQmx clear and close functions to end the tasks as the application finishes executing. 
    • Close out of or stop any other tasks or Test Panels in NI MAX
  • Ensure concurrent tasks do not exceed the maximum number of tasks that the device can support.

Additional Information

If you are continuing to experience this error:
  • Try to reset the device through NI MAX.
  • If running an application, add a DAQmx Clear Task.vi to the beginning of the application. 
If you are using SCXI with Digital I/O please refer to: