From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQMx task does not cleanup properly after execution

Solved!
Go to solution

I have two VIs which are designed to write to various digital output lines (NI PCI digital output card and NI PCIe DAQ) which will control the DUT/s.

The channels are hard coded and I have one VI to write to DUT#1 and another to write to DUT#2.

 

Each VI creates a task, starts it, writes to the output lines(twice) then stops and clears the task.

 

When I run them in LabVIEW....in any order/combination everything behaves as expected.

 

When I run it in Teststand, the first iteration of the sequence 'PASSES' but anything afterwards 'FAILS' the first time it is called.  

 

Error Msg:

 

DAQmx Create task.vi2

Task Name: DIG_OUT_FPP_2_1B

Task name specified conflicts with an existing task name.

 

I have skipped all other steps in the sequence other than the VIs (attached), but the error still occurs.

 

Somehow, Teststand is not correctly clearing the tasks.

 

Any advice would be muchly appreciated. Thanks!!!

Download All
0 Kudos
Message 1 of 2
(4,125 Views)
Solution
Accepted by topic author sammy346

Hi,

 

It sounds like the device may need to be reset. I have attached some information about this below.

 

http://digital.ni.com/public.nsf/allkb/124D580AE300335E86256FDD006CE798

 

I hope this helps!

National Instruments
0 Kudos
Message 2 of 2
(4,084 Views)