CogJobIndependent RealTimeResult Method (Int32, Boolean)Cognex VisionPro 9.7
RealTimeResult(int,bool) allows any result packet to be looked at and/or removed from the real-time result queue.

Namespace: Cognex.VisionPro.QuickBuild
Assembly: Cognex.VisionPro.QuickBuild.Core (in Cognex.VisionPro.QuickBuild.Core.dll) Version: 73.0.0.0 (73.0.0.0)
Syntax

public ICogRecord RealTimeResult(
	int index,
	bool removeResult
)

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: ICogRecord
A reference to an ICogRecord which contains results.
Events

Event TypeReason
CogJobIndependent RealTimeResultRemovedFires when a result package is removed from the real-time result queue.
Exceptions

ExceptionCondition
CogQueueEmptyExceptionThrown if the real-time result queue is empty.
Remarks

Examples

See Also