Read the Edge Count From Encoder Using LabVIEW

Updated Aug 20, 2025

Reported In

Hardware

  • Encoder
  • Quadrature Encoder

Software

  • LabVIEW

Driver

  • NI-DAQ™mx

Issue Details

I'm using NI DAQ hardware and measuring encoder. How can I read the edge count instead of position? I'm expecting edge count reading will corresponding to position increments.

Solution

To get the edge count, you need to change the NI DAQmx Read (Counter DBL) VI to NI DAQmx Read (Counter U32) VI to read unscaled 32-bit unsigned integer sample from counter task.

Below image is an example of using NI DAQmx Read (Counter U32 1Chan 1 Samp) VI.