CogMotionInputConstants EnumerationCognex VisionPro 9.7
Enumeration of valid modes for a linescan encoder.

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

public enum CogMotionInputConstants
Members

  Member nameValueDescription
Encoder0Linescan acquisition is performed using a real hardware encoder. The relevant encoder inputs are: SetStepsPerLine(Int32, Int32), EncoderResolution, and DistancePerCycle.
SimulatedEncoder1Linescan acquisition is performed using the test encoder. The frequency of the test encoder simulates a hardware encoder that is currently unavailable. The relevant encoder inputs are: SetStepsPerLine(Int32, Int32), EncoderResolution, DistancePerCycle, and ExpectedMotionSpeed. If the physical motion is steady at the expected speed and the DistancePerCycle setting is accurate, there should be little observable difference between real and simulated encoders. You can switch between real and simulated encoder mode without changing any other encoder parameters.
Encoderless2Linescan acquisition is performed using the test encoder. The frequency of the test encoder is computed from the inputs: ExpectedDistancePerLine and ExpectedMotionSpeed. This mode is intended for systems which have no hardware encoder.
Legacy3Linescan acquisition is performed using either a hardware encoder or the test encoder, depending upon the setting of TestEncoderEnabled. This mode is intended for hardware which does not support MotionInput.
See Also