Counter Input >> Velocity >> Decoding Type

NI-DAQmx C Reference Help

Edition Date: January 2019

Part Number: 370471AM-01

»View Product Info
Download Help (Windows Only)
Data Type: int32
Description: Specifies how to count and interpret the pulses the encoder generates on signal A and signal B. X1, X2, and X4 are valid for quadrature encoders only. Two Pulse Counting is valid for two-pulse encoders only.


Valid values

DAQmx_Val_X1 10090 If signal A leads signal B, count the rising edges of signal A. If signal B leads signal A, count the falling edges of signal A.
DAQmx_Val_X2 10091 Count the rising and falling edges of signal A.
DAQmx_Val_X4 10092 Count the rising and falling edges of signal A and signal B.
DAQmx_Val_TwoPulseCounting 10313 Increment the count on rising edges of signal A. Decrement the count on rising edges of signal B.



You can get/set/reset this property using:

  DAQmxGetCIVelocityEncoderDecodingType

  DAQmxSetCIVelocityEncoderDecodingType

  DAQmxResetCIVelocityEncoderDecodingType

WAS THIS ARTICLE HELPFUL?

Not Helpful