Developer Center Resources

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling .NET Assemblies from LabVIEW

 

» Calling External Code » .NET Assemblies

Overview

LabVIEW gives you the ability to use .NET Assemblies through several .NET nodes. Using these nodes, you can instantiate .NET objects, invoke functions and access properties of .NET classes and objects. In addition, you can host .NET UI Controls on the LabVIEW front panel.

To Instantiate a .NET Object

Use the .NET Constructor Node (Functions Palette » Connectivity » .NET » Constructor Node).

 

Also, use the Close Reference VI (Functions Palette » Connectivity » .NET » Close Reference) to destroy an object you have created.

 

For details, refer to:
Instantiating .NET Objects from LabVIEW

To Call a Method on a .NET Class / Object

Use the Invoke Node (.NET) (Functions Palette » Connectivity » .NET » Invoke Node).

 

For details, refer to:

Calling Methods and Accessing Properties of a .NET Class / Object

 

 

To Access a Property on a .NET Class / Object

Use the Property Node (.NET) (Functions Palette » Connectivity » .NET » Property Node).

 

For details, refer to:

Calling Methods and Accessing Properties of a .NET Class / Object

 

 

To Host/Embed a .NET Control on the LabVIEW Front Panel

Use the .NET Container (Controls Palette » .NET & ActiveX » .NET Container).

 

For details, refer to:

Embedding/Hosting .NET UI Controls on a LabVIEW Front Panel

To Register for an Event of a .NET Object:

Use the Register Event Callback VI (Functions Palette » Connectivity » .NET » Register Event Callback).

 

For details, refer to:

Register Callback VIs for .NET Events in LabVIEW

Examples & References

The following examples install with LabVIEW:
Calculator VI: labview\examples\comm\dotnet\Calculator.llb
SimpleTaskMonitor VI: labview\examples\comm\dotnet\SimpleTaskMonitor.llb

 

Community Example: Calling .NET Assemblies from LabVIEW

LabVIEW Help: .NET Functions
KnowledgeBase 4IH72U6S: How LabVIEW Locates .NET Assemblies

 

 

Child Documents

Instantiating .NET Objects from LabVIEW

Calling Methods and Accessing Properties of a .NET Class / Object

Embedding/Hosting .NET UI Controls on a LabVIEW Front Panel

Register Callback VIs for .NET Events in LabVIEW

 

Jervin Justin
NI TestStand Product Manager