Creating .NET Objects on the Block Diagram

You can use LabVIEW to access objects associated with third party .NET servers. You can create either visible or invisible .NET objects on the block diagram and set properties, methods, or handle events for the objects. For example, you can place a .NET container on the block diagram and then place a button within the container that accesses a third party browser. Complete the following steps to create and configure a .NET object on the block diagram.

Step 1: Configure the Constructor Node

Add the Constructor Node to the block diagram to launch the Select .NET Constructor dialog box. Then select an assembly, objects, and constructors for a .NET object.

Refer to the following list for important details about configuring each component of the Select .NET Constructor dialog box:

Step 2: Configure Properties, Methods, or Events for the .NET Object

  1. The .NET Constructor Node creates a reference to an instance of a .NET object. Once you have that reference, you can act on the .NET object. To act on the object, wire the new reference output of the Constructor Node to a Property Node, Invoke Node, or Register Event Callback and set properties, set methods, or handle events for the object.
  2. Use the Close Reference function to close the reference to the .NET object and relinquish the memory resource LabVIEW allocated to that object.

Tips and Troubleshooting Information

Related Information

Loading .NET 2.0, 3.0, and 3.5 Assemblies in LabVIEW

Requirements for Using .NET Assemblies in LabVIEW

Using .NET with LabVIEW

Creating Properties and Methods

Registering Handling .NET and ActiveX Events