Error Message "Resource Not Found nilvaiu.dll" When Running LabVIEW Executable

Updated Dec 28, 2023

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

  • I deployed my LabVIEW built executable from my development computer to the deployment computer. When I click on the LabVIEW executable I get an error saying that a DLL named dilvaiu.dll is missing.
  • I have a VI that uses NI-DAQmx driver. The VI works fine as a VI, but when I compile it as an executable and run it on the same computer, I receive the error message Resource Not Found: nilvaiu.dll.
  • I just installed the LabVIEW Run-Time and my DAQmx executable on a new computer and it fails to run saying that is missing the nilvaiu.dll.
  • I cannot find the nilvaiu.dll.

Solution

This is a DLL that is included in the DAQmx driver. Your program is trying to access this file, and can't find it on the target/deployment computer.
There are some recommendations on how to solve it: 
  • If the executable is using NI-DAQ devices with NI-DAQmx it is possible that the DAQmx Run-Time is not installed on the target computer. Try downloading a version of the DAQmx Run-Time that is compatible with your version of LabVIEW and Windows and run the executable again. DAQmx Run-Time and NI Driver Runtimes 19.0 and Later can be installed from NI Package Manager.
  • If you've reinstalled or downloaded the NI-DAQmx driver and still get the error, you may need to reinstall the LabVIEW Run-Time Engine and DAQmx on the target computer.
  • If you are installing from LabVIEW installer and have included the NI-DAQmx packages in the installer under additional installers, try to run LabVIEW project explorer as administrator and build the installer. Then run the installer and the executable file as administrator.
  • Disable the Antivirus and run the executable.
  • Try the installer on a different computer that has LabVIEW, LabVIEW Run-Time and DAQmx driver.
  • Fix corrupt or non-working NI-DAQmx driver with force reinstall.

Additional Information

When you are deploying an executable that is using NI-DAQ devices with NI DAQmx, the computer target needs access to the DAQmx Run-Time package, this package can be installed on the computer target or added into the installer.

To NI-DAQmx 18.6 and before, the DAQmx Run-Time version can be installed separately. To NI-DAQmx 19.0 and later, the runtime driver is installed with NI Package Manager.

You will also always need the LabVIEW Runtime Engine on any computer you are running LabVIEW executables on. When deploying code to end users, it is best practice to build an installer that includes all needed drivers and additional software.