Integrate existing .NET code into your application by calling a .NET assembly from the Global Assembly Cache (GAC).
To call a .NET assembly, you must create a .NET document, or interface.
-
Select
to add a .NET document to your project.
-
Click
Select Assembly
to open, search, and select from the list of available .NET items.
-
In the .NET document, select the .NET namespaces and classes you want to use in your application.
In the
Project Items
palette, LabVIEW NXG creates new palettes for all of the namespaces and classes you select. These new palettes contain properties and methods that are entry points to the .NET assemblies. You can use these entry points in any project in your application.
Note
You must save the document to make the newly selected items available in your project.
-
Open the VI in which you want to call the .NET code.
-
On the diagram, select
. Then click the .NET folder to show every entry point you selected in the .NET document.
-
Drop the entry points you want to use on the diagram.
-
Wire the entry points like nodes and complete the diagram.
-
Execute the VI.
As the VI executes, input and output data passes between the .NET assembly and the diagram through the .NET entry points you specify.