NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

CIChannel.EncoderDecodingType Property

  • Updated2023-02-21
  • 1 minute(s) read
CIChannel.EncoderDecodingType Property
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.40.49302

Syntax

public CIEncoderDecodingType EncoderDecodingType { get; set; }
Public Property EncoderDecodingType As CIEncoderDecodingType
	Get
	Set

Property Value

Type: CIEncoderDecodingType
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.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

X2 and X4 decoding are more sensitive to smaller changes in position than X1 encoding, with X4 being the most sensitive. However, more sensitive decoding is more likely to produce erroneous measurements if vibration exists in the encoder or other noise exists in the signals.

See Also

Log in to get a better experience