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

Automation Open Function

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: ActiveX Functions

Requires: Base Development System (Windows)

Returns an automation refnum, which points to a specific ActiveX object.

Details  Example

Automation Refnum provides the object type for the Automation Refnum output.
machine name indicates on which machine the VI should open the Automation Refnum. If no machine name is given, the object is opened on the local machine.
If open new instance is TRUE, LabVIEW creates a new instance of the Automation Refnum. If FALSE (default), LabVIEW tries to connect to an instance of the refnum that is already open. If the attempt is unsuccessful, LabVIEW opens a new instance.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Automation Refnum is the refnum associated with an ActiveX object.
error out contains error information. This output provides standard error out functionality.

Automation Open Details

Select the class of the object by right-clicking the function and selecting Select ActiveX Class from the shortcut menu. After you open the refnum, you can pass it to other ActiveX functions. Select only creatable classes as inputs to this function. If you wire machine name, the object opens on the remote machine. Otherwise, the object opens on the local machine.

Note  Distributed COM must be properly installed and configured to open a remote reference.

Example

Refer to the Excel - ActiveX Event Callback VI in the labview\examples\Connectivity\Excel directory for an example of using the Automation Open function.


 

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