Owning Palette: Connectivity VIs and Functions
Requires: Base Development System (Windows). This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the ActiveX functions to pass properties and methods to and from other ActiveX-enabled applications, such as Microsoft Excel.
Some applications provide ActiveX data in the form of a self-describing data type called a variant. To review or process the data in LabVIEW, you must convert it to a corresponding LabVIEW data type using the Variant To Data function.
Note ActiveX error codes are documented by Microsoft in winerror.h. |
Palette Object | Description |
---|---|
Automation Open | Returns an automation refnum, which points to a specific ActiveX object. |
Close Reference | Closes a refnum associated with an open VI, VI object, an open application instance, or a .NET or ActiveX object. |
Invoke Node (ActiveX) | Invokes a method or action on a reference. Most methods have associated parameters. |
Property Node (ActiveX) | Gets (reads) and/or sets (writes) properties of a reference. |
Register Event Callback | Registers a VI to be called when an event occurs. You use this function to register and handle .NET and ActiveX events. LabVIEW uses the type of the input reference wired to each item to determine the events for which you can register. |
Static VI Reference | Maintains a static reference to a VI. You can configure the Static VI Reference function to output a generic or strictly typed VI reference. After you place the Static VI Reference function on a block diagram, double-click the function to display a file dialog box where you can select a VI. |
To Variant | Converts any LabVIEW data to variant data. You also can use this function to convert ActiveX data to variant data. |
Unregister For Events | Unregisters all events associated with an event registration refnum. |
Variant To Data | Converts variant data to a LabVIEW data type so LabVIEW can display or process the data. You also can use this function to convert variant data to ActiveX data. |