Owning Palette: Connectivity VIs and Functions
Use the .NET functions to create .NET objects, set properties or call methods on those objects, and handle events for those objects in the .NET environment. You also can create a .NET control on the front panel. Creating and communicating with .NET objects requires the .NET Framework 1.1 Service Pack 1 or later.
The functions on this palette can return Windows connectivity error codes.
Refer to the labview\examples\comm\dotnet directory for examples using the .NET functions.
| Palette Object | Description |
|---|---|
| .NET Object To Variant | Converts a .NET object to a LabVIEW variant. |
| Close Reference | Closes a refnum associated with an open VI, VI object, an open application instance, or a .NET or ActiveX object. |
| Constructor Node | Creates an instance of a .NET object. This node identifies the constructor from which to create a .NET object. |
| Invoke Node | Invokes a method or action on a reference. Most methods have associated parameters. |
| Property Node | 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 .NET Object | Converts a LabVIEW data type to a .NET object. You can convert numeric (except extended precision and complex), string, Boolean, timestamp, path, .NET refnum, and array data types. |
| To More Generic Class | Typecasts a reference, such as a control or a type definition, to a more generic class in the inheritance hierarchy. |
| To More Specific Class | Typecasts a reference, such as a control or a type definition, to a more specific class in the inheritance hierarchy. |
| Unregister For Events | Unregisters all events associated with an event registration refnum. |