Example Code

Access a .NET Interop Assembly DLL (with LabVIEW classes) in C#, C++ and Python

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

    Operating System

  • Windows

    Programming Language

  • .NET
  • LabVIEW G
  • Python

Code and Documents

Third-Party Code Repository

Some users manage their code in repositories outside of ni.com. Use your best judgment when following links to third-party sites. https://github.com/etfovac/lv-net-dll-py

Description

 

C# and C++ example Visual Studio solutions for Consoles and DLLs: Wrapped the .NET assembly (LabVIEW classes) into C++ DLL

 

Python example repo: Access a .NET DLL (with LabVIEW classes) in Python

 

 

 

How to Use

Refer to README.md files in the GitHub repos.

 

Related Links

 Using 'new' triggers browsing to lvclass file on disk. This was avoided in LabVIEW example: Reusing .NET Interop Assembly with LVOOP in LabVIEW by using constructor with pointers.

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors