Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Get Target ID VI

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: AppleEvent VIs

Requires: Base Development System (Mac OS X)

Returns a target ID for an application based on its name and location. You can specify the name and location of the application or search the entire network for the application.

App/port name is the name of the application for which you want the target ID. This parameter must match the name of the application exactly.
Search entire network indicates whether the VI searches the entire network for the application.
Zone indicates the zone of the target computer that the VI searches. The following table displays the search options.
Locations to Search Parameter Settings
The current computer. Zone and Server must be unwired. Search entire network must be FALSE.
A computer on the network. Zone and Server must indicate the zone and server of the target computer. (If you do not wire Zone, the VI searches the current zone.) Search entire network must be FALSE.
A zone. Zone must indicate the zone to be searched. Server must be unwired. Search entire network must be FALSE.
The entire network. Search entire network must be TRUE. The VI ignores Zone and Server.
Server indicates the server that the VI searches.
first target ID contains the target ID of the first application found whose name matches App/port name.
total targets is the total number of applications that the VI finds whose names match App/port name.
all targets contains an array of the target IDs of all matching applications.
error is nonzero only if the search encounters an error. Finding zero targets is not necessarily an error if there are no applications with the specified name running and available on the network. Refer to the Apple Event Error Codes for more information.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit