How Do I Use a LabVIEW DLL in Microsoft Visual Studio .NET?

Updated Feb 8, 2018

Reported In

Software

  • LabVIEW Professional
  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Application Builder Module

Other

Microsoft Visual Studio

Issue Details

I created a DLL using LabVIEW and would like to call functions from the DLL in Microsoft Visual Studio.

Solution

Managed code (.NET) can easily call functions contained in unmanaged DLLs, such as Win32 API and custom DLLs. To do this, the .NET Framework provides a mechanism called P/Invoke (for Platform Invoke). Refer to the related links section for examples and further information.

WAS THIS ARTICLE HELPFUL?

Not Helpful