CogSearchMaxRunParams Timeout Property Cognex VisionPro 9.8 SR1
Gets or sets the maximum execution time (msec) allowed to run a SearchMax. If SearchMax has not finished by the end of the timeout period, it will stop soon thereafter and return E_Cog_TimeoutExpired. This value only applies if TimeoutEnabled is true.

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

public double Timeout { get; set; }

Property Value

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

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfTimeout
Exceptions

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