CogJobManager UserResult Method Cognex VisionPro 9.20
UserResult() removes and returns the oldest result packet from the user queue. UserResult() will return null if the user queue is empty. This method may be called while the CogJobManager or CogJobs are running.

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

public ICogRecord UserResult()

Return Value

Type: ICogRecord
A reference to an ICogRecord which contains results.
Events

Event TypeReason
CogJobManager UserResultRemoved Fires when a result packet is removed from the user queue.
Remarks

Returns and removes the oldest packet from the User Queue, which is called the Posted Items List in the QuickBuild application.

A user record contains the following subrecords:

Subrecord KeyDescription
JobName The name of the job that provided these results.
UserResultTag The sequence number of the result packet.
RunStatus The run status of the tool.
ShowLastRunRecordForUserQueue If the Include LastRunRecord image and graphics option is checked in the Configure Posted Items dialog, this record contains a single subrecord whose key is LastRun. The LastRun record contains subrecords that contain the last run records for each of the tools in the job.
Posted Items One record for each of the items you selected to be in the Posted Items List The record key for each of these items corresponds to the path specified when you configured the item. For example: "Tools.Item[1].CogIDTool.Results.Count"

See Also