Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 2 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 afterwards. Why is this happening and how can I resolve this?

Solution:
When using the DAQmx Create Task vi in LabVIEW, you have the ability to save the task for future use. You do this by using the new task name terminal, and it will save it in Measurement & Automation Explorer (MAX). After you run your program once, this will stop future runs due to duplicate resource name. In order to bypass this save, you have 3 options:
  • Leave the new task name terminal floating, with no value in this property it will not save the task
  • Open up MAX and remove the task physically every time you run the code
  • Use the DAQmx Delete Saved Task vi at the end of your code, in conjunction with DAQmx Clear Task or DAQmx Stop Task


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

Attachments:





Report Date: 11/06/2007
Last Updated: 01/02/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