LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does New Task require Unique Task Name ?

DAQ create Question.JPG
0 Kudos
Message 1 of 6
(3,359 Views)
While it is necessary for all tasks to have a unique name, that VI would insinuate that every time you run the VI you need to give the tasks new names. That would only be the case if you are running tasks, stopping the VI without releasing them, and restarting.
Richard






0 Kudos
Message 2 of 6
(3,351 Views)

I just reviewed the code again, and find that I do, in fact, Clear the task when done with the acquisition.

The issue surfaced earlier, prior to adding that random number string, where I would get an Error -200429.

Once I added this "unique task name", I no longer get the error.

 

Is there some correlation?

0 Kudos
Message 3 of 6
(3,340 Views)
No, none of that code is necessary. You do not need to use the DAQmx Create Task and if you do use it, you do not need to provide a name. What are you attempting to do? Have you looked at the DAQmx examples? Where have you seen this done?
0 Kudos
Message 4 of 6
(3,330 Views)

If the Create Task is not necessary, does the DAQmx Create Channel automatically assign a task name ?

 

I just tried eliminating the "unnecessary" code, and it seems to work the same.

However this annoyance "Error Code -200429" still seems to show up.

0 Kudos
Message 5 of 6
(3,322 Views)

Try this:

 

Message Edited by Dennis Knutson on 12-07-2009 03:50 PM
0 Kudos
Message 6 of 6
(3,318 Views)