RealTimeResult(int,bool) allows any result packet to be looked at and/or removed from the real-time result queue.
Namespace: Cognex.VisionPro.QuickBuildAssembly: Cognex.VisionPro.QuickBuild.Core (in Cognex.VisionPro.QuickBuild.Core.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax
Parameters
- index
- Type: System Int32
The index of the result packet to be retrieved from the real-time result queue. The oldest packet is at index 0.
- removeResult
- Type: System Boolean
If this boolean is true, then the specified result packet is removed from the real-time result queue. If false, then just a reference to the result packet is returned without removing it from the real-time result queue.
Return Value
Type: ICogRecordA reference to an ICogRecord which contains results.
Events
| Event Type | Reason |
|---|---|
| CogJobIndependent RealTimeResultRemoved | Fires when a result package is removed from the real-time result queue. |
Exceptions
| Exception | Condition |
|---|---|
| CogQueueEmptyException | Thrown if the real-time result queue is empty. |
See Also