Install NI Software for Visual Studio C# or .NET Development

Updated Aug 12, 2020

Environment

Software

  • Measurement Studio
  • Package Manager

Programming Language

  • C# .NET
  • Visual Basic .NET

This tutorial provides what software you need installed for .NET development and how to include .NET support for certain NI drivers, including NI-DAQmx, NI-VISA, and NI-488.2.  

Required Software 

The software you will need for Visual Studio .NET application development are the following: 
  1. Measurement Studio (Optional)
While Measurement Studio is not required for you to communicate with NI hardware in Visual Studio, it removes the complexity of hardware communication through high-level, intuitive, object-oriented hardware class libraries. For more information, refer to NI .NET Support Resources.
  1. NI Hardware driver (Required)
The underlying device driver must be installed to use the .NET API. Some NI drivers already include the native .NET API with the driver installer. To see which drivers include the API, refer to NI .NET Support Resources and follow the steps in the next section of this document for how to install.
  1. NI .NET driver API 
If the .NET API is not already included with the driver, you must install the .NET driver API separately. NI provides both native .NET APIs and Source Code Wrappers. For more information and where to download, refer to NI .NET Support Resources


Install .NET Support with NI Driver

If the .NET API is already included with the driver installer, follow the steps below to include it with the installation. 
  1. Download the NI driver from NI Driver Downloads. Check the driver version readme for system compatibility. 
Note: If you already have the driver installed, refer to Modify NI Software in NI Package Manager to add .NET Development Support. 
  1. In the installer, enable the .NET support package for your version of Visual Studio and .NET Framework. The package is called .NET Development Support or .NET Framework <x.x> Languages Support depending on the driver installer. 
Examples for the NI-VISA, NI-488.2, and NI-IMAQ driver installations are shown below. 
 
 
  
  1. Finish the installation as normal. 
  2. Restart the computer. Confirm the installation was successful by checking whether the documentation and example files have installed. 


Find Documentation and Examples

The installer will install API overview, concepts, and function reference documentation for the .NET class libraries. You can find this documentation within Visual Studio by navigating to Help»Contents and expanding NI Measurement Studio Help.

Help documentation and examples can also be found in the local directory. Refer to NI .NET Resources for the directory location of your specific .NET Class Library.