Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 2.5 out of 5     Rate this Document

Why Do I Get Error -200089 When Using DAQmx Create Task?

Primary Software: Driver Software>>NI-DAQ
Primary Software Version: 4.6.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
When using the DAQmx Create Task VI in LabVIEW, I'm able to run my program once but then get Error -200089 every subsequent execution. Why is this happening and how can I resolve this?


Figure 1: Error -200089


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.

You have three 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.
  • Physically remove the task in MAX every time you run the code.


Related Links:
KnowledgeBase 2X8G3S3N: Saving Virtual Channels Created in LabVIEW to the NI-DAQ Configuration File

Attachments:





Report Date: 11/06/2007
Last Updated: 11/13/2008
Document ID: 4F594CL3

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit