LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -89134, starting task DAQmx 17

I am using PCIe6612 (counter and DIO) with DAQmx, Labview. I am starting tasks on multiple lines as input, outputs and multiple counters. I get the following error. The code is attached. Please help.

 

Error -89134 occurred at DAQmx Start Task.vi:7220004

Possible reason(s):

Specified inversion cannot be satisfied, because it requires resources that are currently in use by another route.

Property: Pause.DigLvl.Src
Property: Pause.DigLvl.When
Source Device: Dev1
Source Terminal: Low

Required Resources in Use by
Task Name: _unnamedTask<0>
Source Device: Dev1
Source Terminal: Low
Destination Device: Dev1
Destination Terminal: Ctr4Gate

Task Name: _unnamedTask<4>

0 Kudos
Message 1 of 3
(2,235 Views)

There are a few clues in the Error Message.  I've not used Counters much, but from looking at your code and the Error details, it looks like you are using the 6612 to deliver a Logic High to some piece of equipment, then use 5 counters on the same card to count "things" until you push the End button and send Logic Low.  The Error Message suggests that a digital signal going to the Gate of Counter 4 from the DI ports you assigned to the top DIO task can't be used as it is under the control of the DIO task.  [That didn't come out quite right, but the conflict seems clear in the Error Message].

 

Here's what I'd try.  It could be that the code is largely correct (or largely incorrect -- this should help figure it out), but that Channel 4 is somehow "mis-configured.

 

Make a copy of this VI.  Using the Copy, strip it down to the single DI port associated with Counter 0, and remove the code for Counters 1-4.  You should now have only two DAQmx Tasks, the DI task and one Counter Task.  Does it run OK?  If the answer is Yes, see how Ctr 4 differs (in "Obscure settings") from Channel 0 and fix it.

 

Bob Schor

0 Kudos
Message 2 of 3
(2,208 Views)

The attached code works fine till I add another counter task, then it gives the same error.

0 Kudos
Message 3 of 3
(2,203 Views)