ICogAcqLineScan CurrentEncoderCount Property Cognex VisionPro 9.7
Current value of the encoder.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax

int CurrentEncoderCount { get; }

Property Value

Type: Int32
Remarks

The current value of the encoder.

The Cognex MVS-8600 does not provide an absolute encoder position counter. On that platform, this property returns the product of the number of the line being acquired and the steps per line encoder setting. This value may not be accurate if the encoder travels backwards during acquisition. If you are using the test encoder the steps per line value is ignored, so this property returns the currently acquired line number. If there is no acquisition in progress, the value of this property is zero.

See Also