Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

9401 line direction configuration in LabView

Solved!
Go to solution

I use NI 9401 to measure a quadraure encoder. and i want 9401 to output 5VDC to drive my encoder. How to set the line direction for each port on the 9401 in Labview?

0 Kudos
Message 1 of 2
(5,283 Views)
Solution
Accepted by godspeed13

Hi godspeed13

 

A quick search brings up this great KB on configuring the 9401. It sounds like you want to have a Digital Output task and a Counter input task. With DAQmx you don't expliclitly set the dirrection for your two ports, you just have to configure the tasks and reserve and start them in the proper order so that DAQmx can configure the device before any tasks start.

 

I would be very cautious about using a digital output line to power an encoder. Each digital output line is only really intended for 1-2mA of output current.

 

Luke

0 Kudos
Message 2 of 2
(5,238 Views)