Vision_Object Instance Property

Sets and gets the number of the PreciseVision instance that is associated with a vision object.

vision_object.Instance= <integer_value>
-or-
vision_object.Instance

Prerequisites

When this property is set, the vision object must not be connected to PreciseVision.

Parameters

None

Remarks

Multiple, independent instances (copies) of the PreciseVision application software can be run on a single PC. When each copy of PreciseVision is started, its instance number must be explicitly specified if it is not the first instance. By default the first copy of PreciseVision is instance 1. For some applications, a single Precise Controller may need to communicate with multiple instances of PreciseVision or with a specific instance. This property allows a GPL program to select the instance that is used as a vision server for the specified vision object. If the Instance property is not set, the default value is 1.

Examples

Dim vobject As New Vision
vobject.Instance = 2 ' Select server instance 2
vobject.Process("find_part")

See Also

Vision Classes | vision_object.IPAddress