CogPrio SetEncoderCount Method Cognex VisionPro 9.25 SR1
Set the encoder count.

Note that current hardware platforms only report 32-bits of encoder data. This means that, depending on the hardware, the encoder may rollover (go back to 0) when the encoder count reaches 4294967295, (0xFFFFFFFF).

On platforms like this only the lower 32 bits of the encoderCount argument are used when calling SetEncoderCount()... So don't try to set the encoder count to a negative number or a number greater than 4294967295.

Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 93.1.0.0
Syntax

public void SetEncoderCount(
	long encoderCount
)

Parameters

encoderCount
Type: System Int64
See Also