O'Reilly logo

LabVIEW Graphical Programming Cookbook by Yik Yang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using a .NET DLL

Calling a .NET DLL is different than calling a C-based DLL in LabVIEW. In this example, we will demonstrate how to call functions in .NET DLL for .NET framework 4.

How to do it...

We will start by using a BinarySearch method of the Array class. In order to work with .NET DLL based on framework 4 and above, we have to create a configuration file.

  1. In order to use .NET DLL based on framework 4, the LabVIEW.exe.config file needs to be created with content shown in the following screenshot. The file needs to be placed in the same LabVIEW folder where LabVIEW.exe is located, inside the LabVIEW installation folder.
    How to do it...
  2. After the configuration ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required