Using DAQmx in Visual Studio .NET With or Without Measurement Studio

Updated Jan 7, 2020

Reported In

Software

  • Measurement Studio

Driver

  • NI-DAQmx

Operating System

  • Windows

Programming Language

  • C# .NET
  • Visual Basic .NET

Other

Microsoft Visual Studio

Issue Details

  • Do I need Measurement Studio to be able to use NI-DAQmx with the .NET languages, such as Microsoft Visual C# and Visual Basic .NET?
  • Do I need Measurement Studio license and a Microsoft Visual Studio license to use NI-DAQmx in Visual Basic or C#?
  • Do I need Measurement Studio to communicate with an I/O card in Visual Studio?
  • How do I install DAQmx to work within Visual Studio if I do not need Measurement Studio?

Solution

It is not necessary to have Measurement Studio in order to communicate with DAQ cards in Visual Studio.
 

However, you must download the NI-DAQmx driver, as the .NET features are installed by the respective hardware driver installer. If you already have NI-DAQmx installed, refer to Modify NI Software in NI Package Manager to add .NET Development Support. 

If you don’t already have NI-DAQmx installed, follow the steps below.
 

  1. Download NI-DAQmx. Refer to the Readme of the driver version to check system compatibility. 
  2. In the installer, make sure to enable .NET support by selecting the desired .NET Development Support version. 
 
  1. Finish the installation as normal.


For documentation on the NI-DAQmx .NET Library, refer to the NI-DAQmx .NET Class Library Help

For Visual C# and Visual Basic .NET examples, refer to 
NI-DAQmx, NI-VISA, and NI-488.2 .NET Example Locations .  

Additional Information

With NI-DAQmx you can use Measurement Studio for Visual Studio which provides additional tools for use with NI-DAQmx, though Measurement Studio is not required to use NI-DAQmx in a text-based environment. For more information on which versions of Visual Studio are compatible with the different DAQmx .NET Frameworks, please see the DAQmx readme: Finding NI Readmes for Supported OS, ADE, Device, Modules and More.

Note: In order to install language support for Visual Studio 2008 C++ MFC you must have Measurement Studio for Visual Studio 2008.

WAS THIS ARTICLE HELPFUL?

Not Helpful