Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Quadrature Encoder inputs with digital outputs on the same module

Hello,

 

I'm using a CDAQ 9188 with a NI-9401 digital IO module, and I'm using one of the chassis counters for reading a quadrature encoder. I created one task in MAX for the linear encoder and specified ctr0 and I created another task using digital outputs port0/line4 through port0/line7. When I try to use both tasks in my LabView programs I get the following error

 

Error -201133 occurred at DAQmx Start Task.vi:7

Possible reason(s):

Device cannot be configured for input or output because lines and/or terminals on this device are in use by another task or route. This operation requires temporarily reserving all lines and terminals for communication, which interferes with the other task or route.

If possible, use DAQmx Control Task to reserve all tasks that use this device before committing any tasks that use this device. Otherwise, uncommit or unreserve the other task or disconnect the other route before attempting to configure the device for input or output.

Device: cDAQ9188-15E9749Mod5
Digital Port: 0
Lines: 4, 5, 6, 7

Task Name: Encoder_Mod5

 

I tried using the DAQmx Task control VI, but was unsuccessful. Is it possible to use the 9401 in this configuration?

 

Thank you,

 

Tyson

0 Kudos
Message 1 of 2
(5,536 Views)

Hi Tyson, 

 

Are you using the 9401 for bidirectional communication on those lines?  This error typically relates to improperly setting and starting DAQmx Tasks for bidirectional communication.  I have linked a Knowledge Base below that goes into a bit more detail on what I'm speaking of, let me know if it helps!

 

Why Do I Get Error 201133 When Trying To Perform Bidirectional DI/O with my NI 9401 in DAQmx:

http://digital.ni.com/public.nsf/allkb/0495B7D5E2345DF386257730007EFD17?OpenDocument

 

Regards, 

 

Kyle S

Regional Account Manager
NI
Message 2 of 2
(5,519 Views)