NI-DAQmx .NET Framework 4.5 API Reference

CIEncoderDecodingType Enumeration

  • 更新时间2023-02-21
  • 阅读时长1分钟
CIEncoderDecodingType Enumeration
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. TwoPulseCounting is valid for two-pulse encoders only.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.45.49302

Syntax

public enum CIEncoderDecodingType
Public Enumeration CIEncoderDecodingType

Members

  Member nameValueDescription
X110090If 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.
X210091Count the rising and falling edges of signal A.
X410092Count the rising and falling edges of signal A and signal B.
TwoPulseCounting10313Increment the count on rising edges of signal A. Decrement the count on rising edges of signal B.

Remarks

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. TwoPulseCounting is valid for two-pulse encoders only. Use this enumeration to get or set the value of EncoderDecodingType.

See Also