Configure .NET Framework Assembly Created in LabVIEW for Visual Studio

Updated Nov 16, 2022

Reported In

Software

  • LabVIEW
  • Microsoft Visual Studio

Issue Details

I want to configure a .NET Framework Assembly created in LabVIEW so that I can use it in Visual Studio, however I get the message in Visual Studio that it cannot find the LVBaseRefnum object and ErrorCluster object.

image.png

How do I configure the .NET Framework Assembly correctly?

Solution

When you create a .NET Framework assembly in LabVIEW, the classes that are created depend on the state of the VI used. In general, most classes are replaced with objects.

The LVBaseRefnum and ErrorCluster classes are located in C:\Program Files (x86)\National Instruments\LabVIEW 20xx\resource under the assembly names
NationalInstruments.LabVIEW.Interop.dll
NationalInstruments.LabVIEW.RefnumTypes.dll


Add the above assembly to your project reference generated by Visual Studio.