CogPMRedLinePattern TrainTimeout Property Cognex VisionPro 9.8 SR1
Gets or sets the maximum execution time (in msec) allowed when a PMRedLine tool is trained. This value only applies if TrainTimeoutEnabled is set to "true".

Namespace: Cognex.VisionPro.PMRedLine
Assembly: Cognex.VisionPro.PMRedLine (in Cognex.VisionPro.PMRedLine.dll) Version: 75.0.0.0
Syntax

public double TrainTimeout { get; set; }

Property Value

Type: Double
The maximum training time allowed (in milliseconds). Default value is 5000.
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flag may be affected:
Exceptions

ExceptionCondition
ArgumentOutOfRangeException The supplied value is less than zero.
Remarks

If the timeout is enabled and training exceeds the timeout period, the Train  method will throw a CogTimeoutExpiredException. This exception will occur shortly after the timeout period elapses.
See Also