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.QuickBuildAssembly: Cognex.VisionPro.QuickBuild.Core (in Cognex.VisionPro.QuickBuild.Core.dll) Version: 87.1.0.0 (87.1.0.0)
Syntax
Return Value
Type: ICogRecordA reference to an ICogRecord which contains results.
Events
| Event Type | Reason |
|---|---|
| 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 Key | Description |
|---|---|
| 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