ConnectToTarget Method
Syntax
NIVBAIInspectionEngine.ConnectToTarget [IPAddress = ""], [Mode = vbaiFullControl], [Password = ""], [Status]
Return Type
Purpose
(Obsolete—Use ConnectToTarget2 instead) Connects to either a local or remote target. A connection must be established before inspections can run. If an inspection is already running on a target, the InspectionComplete events are received.
Return Value
Target opened.
Remarks
Vision Builder AI currently supports having only one target open at a time. An error occurs if you try to open a target while another is open, but this error is not guaranteed behavior. Use ActiveTargets.Count to determine if a target is currently open.
Parameters
IPAddress as Variant
The IP address of the target. Use one of the following three methods to open the local target:
- Do not specify this parameter.
- Use an empty string as the IP address
- Use 127.0.0.1.
Mode as Variant
Level of access to request from the target.
Password as Variant
Password required to gain access to the target. This parameter is ignored on the local target.
Status as Variant
Current state of the target.