Get or set the number of threads that all multi-threaded vision tools will use if the ThreadCountMode is set to UserSpecified.
Namespace: Cognex.VisionPro.QuickBuildAssembly: Cognex.VisionPro.QuickBuild.Core (in Cognex.VisionPro.QuickBuild.Core.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax
Property Value
Type: Int32The default value of this property is 0 until either the VisionToolMTEnable is set to true or the user specifies a new value. If the VisionToolMTEnable is set to false, then this property affects nothing. If The ThreadCountMode is set to HardwareDefined and VisionToolMTEnable is set to true, then this property will be set to the number of physical processors or cores installed. If a user sets this value, then that value will be used instead of the number of physical processors. The value of this property is persisted in every CogJobManager.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fired when VisionToolMTThreadCount changes. |
Exceptions
| Exception | Condition |
|---|---|
| CogNotStoppedException | Thrown if the CogJobManager or any contained CogJobs are not stopped. |
See Also