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

Updated Jul 26, 2021

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

  • 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.
  • When I try to open a VI that uses NI DAQ-drivers LV asks for nilvaiu.dll. However, I cannot find it.

Solution

There are five recommendations on how to solve it: 
  • If you are installing from LabVIEW installer and have included the NI-DAQmx in 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 installer on a different computer.
  • Reinstall NI-DAQmx driver and LabVIEW runtime by uninstalling it and installing again. 
  • Fix corrupt or non-working NI-DAQmx driver with force reinstall.
  • If the executable is using NI-DAQ devices with NI-DAQmx it is possible that the DAQmx Run-Time is not installed. Try downloading a version of the DAQmx Run-Time that is compatible with your version of LabVIEW and Windows.

Additional Information

NI-DAQmx LabVIEW uses function calls from a nilvaiu.dll.