Use NI 9402 to Acquire a Position Measurement from an Encoder

Updated Aug 17, 2023



  • NI-9402
  • cDAQ-9191


  • Measurement & Automation Explorer (MAX)


  • NI-DAQmx

This guide walks through how to use an NI 9402 with a cDAQ chassis to acquire the position measurement of an encoder using NI-DAQmx. 

Useful information:

To acquire the position measurement you must consider:
  1. Check the NI 9402 pinout.
  2. Following the indications provided in the document Measuring Angular Displacement>Making Signal Connections, you can identify where to connect pins A, B and Z of your encoder. In particular, for NI 9204:
    • MeasurementCtr0Ctr1Ctr2Ctr3
      A: PFI 0
      B: PFI 2
      Z: PFI 1
      A: PFI 3
      B: PFI 1
      Z: PFI 2
      A: PFI 1
      B: PFI 0
      Z: PFI 3
      A: PFI 2
      B: PFI 3
      C: PFI 0
  3. Now, you can configure an encoder measurement from MAX.