CogSearchMaxPattern TrainTimeout Property Cognex VisionPro 9.22
Gets or sets the maximum execution time (msec) allowed to train SearchMax. If SearchMax has not finished training by the end of the timeout period, it will stop soon thereafter and return E_Cog_TimeoutExpired. This value only applies if TrainTimeoutEnabled is true.

Namespace: Cognex.VisionPro.SearchMax
Assembly: Cognex.VisionPro.SearchMax (in Cognex.VisionPro.SearchMax.dll) Version: 87.0.0.0
Syntax

public double TrainTimeout { get; set; }

Property Value

Type: Double
The maximum train time (msec). Default value is 5000.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfTrainTimeout
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown when you attempt to set this to a value less than 0.
See Also