Visresult_Object ProcessID Property

Returns the ID of the vision process (as an Integer value) that generated the vision result.

...visresult_object.ProcessID

Prerequisites

Requires PreciseVision version 3.1.0.11 or later to obtain meaningful values.

Parameters

None

Remarks

This property allows you to retrieve the ID of the vision process that generated the vision result. This ID allows you to keep track of which process generated which result in situations where multiple vision processes are being run by your application. The process ID will be the same value as the ID supplied as an optional argument when the process was executed by the Vision Process method. You must be using PreciseVision version 3.1.0.11 or later to obtain meaningful values. If you are using an older PreciseVision system, this property always returns 0.

Examples

Dim vobject As New Vision
Dim
result As VisResult
vobject.Process("find_part", 123)
result = vobject.Result()
Console.Writeline("Process ID = " & CStr(result.ProcessId))
' Outputs "Process ID = 123"

See Also

Vision Classes | vision_object .Process