Error -200089 Using DAQmx Create Task

Updated Jun 14, 2018

Reported In

Driver

  • NI-DAQmx

Issue Details

  • Why can I run my DAQmx code only once?
  • The first time I run my DAQmx code it works fine, but every subsequent time it errors out?
  • Why do I get error -200089 from the DAQmx Create Task VI?

Solution

When using the DAQmx Create Task VI in LabVIEW, you can save the task in Measurement & Automation Explorer (MAX) for future use by entering a task name in the New Task Name terminal. This prevents any future attempt to run the program because of a duplicate resource name for the task.

There are four options to resolve this issue:
  • Leave the New Task Name terminal floating with no value. Your program will not save the task.
  • Use the DAQmx Delete Saved Task VI at the end of your code in conjunction with the DAQmx Clear Task VI or DAQmx Stop Task VI.
  • Delete the task in MAX every time before you run the code.
  • Manually handle the error, using the case of this error to instead start the existing task, maintaining functionality. 

WAS THIS ARTICLE HELPFUL?

Not Helpful