Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cDAQ-9174 error -89137

Solved!
Go to solution

I have a cDAQ-9174 that I am trying to configure to use DO and DI at the same time in two different tasks. It gives me the following error -89137:

 

Possible reason(s):

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

Source Device: cDAQ1
Source Terminal: do/SampleClock
Destination Device: cDAQ1
Destination Terminal: Slot1/ConvertPulse

Required Resources in Use by
Task Name: _unnamedTask<32>
Source Device: cDAQ1
Source Terminal: di/SampleClock
Destination Device: cDAQ1
Destination Terminal: Slot1/ConvertPulse

Task Name: _unnamedTask<33>

 

I understand that this is because some route is in use, but I'm not sure what that means. I tried to reference the device routes in MAX, but I don't really understand it. I attached my code. You can see I want to read and write at the same time, which I feel should be a pretty straightforward thing to do. I found a note on NI's site about setting the clocks with the timing property node. I tried to do that, but I couldn't get it to work anyway.

 

Can anyone tell me how I can use DI and DO tasks on the same cDAQ at the same time?

0 Kudos
Message 1 of 3
(3,475 Views)

Hi Jo-Jo,

 

As I understand, cDAQ-9174 is just a chasis, it does not perform Digital I/O by itself, you must have digital I/O device to perform your task instead of only using a chasis.

 

I also take a look into your VI, as I can see, I'm not sure about your intention to put the DAQmx Create Task at the first place. Furthermore, I also wonder some points:

 

  1.  You want to write data to one channel (Digital Out), so you put a For-loop to perform 101 iteration (0-100) to write 101 value of [0] to that channel. And want to see those signals in another channel (Digital In). But you did not put DAQmx Read.vi in While-Loop or For-Loop so that it would run 1 time only and then terminate the task as there's no command to loop the task.
  2. Why did not you use the DAQmx Clear Task.vi to clear the task once it''s done instead of using Auto cleanup frrom DAQmx Create Task?
  3. Why did not you use Error Cluster Indicator to see where does the error come from?

In conclusion, as you stated in the post, I understand that you only have the cDAQ 9174, which is only a chasis, not a DAQ device hence you could not perform any Dataacquisition from the chasis itself. Before you really get into the programming part, I suggest you to use NI-MAX to perform Test Panel function to observe the functionality and behaviours of your device before writing a code for them.

 

Valjean.V

0 Kudos
Message 2 of 3
(3,465 Views)
Solution
Accepted by topic author Jo-Jo

I figured out I can't do hardware timed reads at the same time I do hardware timed writes with this module, so that was the problem.

0 Kudos
Message 3 of 3
(3,396 Views)