How to Include Measurement Studio Libraries in C#?

Updated Aug 13, 2024

Environment

Software

  • Measurement Studio

Programming Language

  • C# .NET

Measurement Studio is a .NET tool that enables engineers to build engineering applications in Microsoft Visual Studio to acquire, analyze, and display measurement data. To utilize the libraries' functionality, the correct linking of the Measurement Studio libraries to the project is important.

This article will share how to include the Measurement Studio libraries in your project.

  1. Install Visual Studio.
  2. Install Measurement Studio and ensure the Measurement Studio support for your Visual Studio version is selected in the NI Package Manager installation process.
  3. Launch Visual Studio
  4. Open your project or create a Windows Forms App (.NET Framework) 
    image.png
  5. In Solution Explorer, right-click the References and select Add Reference 
    image.png
  6. In the Reference Manager window, select Assemblies >> Extensions
    image.png
  7. You will be displayed a list of libraries that can be included in your project. Select the National Instruments libraries that suit your application.
    • If you are unsure which libraries to include, we strongly encourage you to start from the Measurement Studio example, located at C:\Users\Public\Documents\National Instruments\Measurement Studio\Examples. It comes with source code and necessary libraries linked which good for getting started.

After the libraries are added to the project, you should see the Measurement Studio libraries under the project's references:
image.png