Owning Palette: Connectivity VIs and Functions
Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
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.
|Note Creating and communicating with .NET objects in LabVIEW requires the .NET CLR 4.0 that installs with LabVIEW. You must use a .NET 2.0 configuration file if you want to load .NET 2.0 mixed-mode assemblies. Refer to the requirements for using .NET with LabVIEW for more information about .NET restrictions in LabVIEW.
National Instruments strongly recommends that you use .NET objects only in LabVIEW projects.
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.
|.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 (.NET)||Invokes a method or action on a reference. Most methods have associated parameters.|
|Property Node (.NET)||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.|