Visual Studio .NET Application Missing the NationalInstruments.DAQmx.dll File

Updated Dec 28, 2023

Reported In

Driver

  • NI-DAQmx

Issue Details

I have created an application in Visual Studio.NET which makes DAQmx calls. Everything works correctly on my development machine. Why does it indicate that NationalInstruments.DAQmx.dll is missing on deployment computers?

Solution

You are receiving this error because .NET support was not installed with NI-DAQmx on the computer. If you are creating an installer for your .NET application, you may include .NET support for NI-DAQmx with your installer by adding MStudioDAQmx.msm as a merge module. By default this file is located at C:\Program Files\Common Files\Merge Modules\MStudioDAQmx.msm. For details on adding a merge module to your project, see Merge Modules . Although NI-DAQmx .NET support will be installed with your application, NI-DAQmx will need to be installed on each computer which will use your application.

If you are distributing your application without an installer, you must manually install .NET support with NI-DAQmx. To do this, rerun the NI-DAQmx installer, and choose to install ".NET Framework x.x Languages Support", as seen below.
 
image.png