NIVBAITargetControl

NI Vision Builder ActiveX

NIVBAITargetControl

Control that represents a single local or remote execution target.

Note Note  If the connection to a local target fails the first time you try to connect to the local target, restart the computer and retry the connection.
Note  If you open a target using this control, avoid using the NIVBAITarget object to access the target. Using both the object and the control for the target may result in the inspection attempting to access a target that has been closed unknowingly.
Caution Caution  When you run a LabVIEW VI that contains the NIVBAITargetControl, National Instruments strongly recommends that you avoid using the Abort Execution button to stop running the VI. When you use the Abort Execution button, the VI stops, but the connection to the target is not closed. When the connection to the target is still open, you cannot modify any of the control properties. The property page items appear unavailable.

Properties

ActiveInspection Currently-loaded inspection.
Inspections Collection of inspections available on the target.
IPAddress IP address of the target.
IsConnected Indicates whether a connection is open.
Mode Level of access to request from the target.
TargetType Execution type for the target.
UpdateMeasurementsOnRefresh Tells the target to retrieve or ignore step measurements.
Version Specifies the version of Vision Builder AI that you expect to be running on a target.

Methods

Connect Connects to either a local or remote target.
Disconnect Disconnects from the target and leaves it in its current state.
GetDateTime Returns the current date, time, and timezone on the target.
GetDateTimeUTC Returns the current date, time, and timezone on the target in Coordinated Universal Time (UTC).
GetStatus Returns the current status of the target.
OpenInspection Opens the specified inspection on the target.
RefreshInspections Updates NIVBAITargetControl.Inspections to contain the latest collection of inspections available on the target.
SetDateTime Sets the date, time, and timezone on the target.
SetDateTimeUTC Sets the date, time, and timezone on the target in Coordinated Universal Time (UTC).
ShowOpenInspectionDialog Displays a dialog box with a list of all inspections available on the target.

Events

InspectionComplete Triggered after each inspection when looping asynchronously.
RefreshImageComplete Triggered when an asynchronous request for the latest image has completed.