ICogAcqLineScan EncoderOffset Property Cognex VisionPro 9.5
Used to calculate the encoder count at which line zero of the region of interest occurs.

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

int EncoderOffset { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
ICogChangedEvent Changed

Fires when the encoder offset changes.

The following state flag may be affected:

Remarks

Sets or gets the encoder position at which line zero of the region of interest occurs. This offset is meaningful only for encoder-triggered acquisition. Out of range values are clipped to the camera format size.

To specify the starting encoder count, you must also take into account the start of the CogAcqROI. In the following examples y0 means the Y parameter returned by CogAcqROI.GetROIXYWidthHeight(Int32 , Int32 , Int32 , Int32 ).

For acquisitions in which the encoder count increases, the starting encoder count is:

startCount = (y0 * stepsPerLine) + encoderOffset

For acquisitions in which the encoder count decreases, the starting encoder count is:

startCount = (−y0 * stepsPerLine) + encoderOffset

Note: Ignored on MVS-8600.

Default Value: 0

See Also