How Do I Wire an Encoder to the NI 9411 Module?

Updated May 26, 2020

Reported In


  • NI-9411


  • NI-DAQmx

Issue Details

I'm trying to wire my encoder to my NI-9411, but I'm not sure of the pinout. I'm also wanting to power the encoder through the power pins in the D-Sub. How do I wire the encoder to the module?


Depending on the type of encoder you're using, there are two options of connections to the module:

Differential Encoder (two wires per channel)
Single Ended Encoder (one wire per channel)

For some encoders the wiring will be different to the NI 9411 module. Some encoders will require an alternative wiring:
  • Pin 1 (PFI0) - A Phase
  • Pin 2 (PFI1) - Z Phase
  • Pin 3 (PFI2) - B Phase
In case that you are using multiple encoders, you just need to follow the same connection, but using the DI3a, DI4a, DI5a, and their corresponding DIb inputs for the second encoder.

Additional Information

To power the encoder using the 5V pins on the NI 9411 module, you have to plug in an external power supply to the Vsupp and COM terminals on the NI 9411.

Depending on your encoder, it might be needed to to add a pull-up or pull-down resistors to get appropriate measurements. Those resistors are needed to make sure the appropriate voltage levels are provided to the Digital Input.