NI Software Does Not Open Because of Missing msvcp140.dll

Updated Jun 1, 2021

Reported In

Software

  • LabVIEW
  • TestStand
  • Measurement & Automation Explorer (MAX)

Issue Details

  • When I try to open NI software such as LabVIEW, I receive the following error: "the program can't start because msvcp140.dll is missing from your computer.” 
  • I'm calling LabVIEW code in TestStand using the LabVIEW Development Environment successfully.  However, if I uninstall the development environment so that only the LabVIEW Run-Time Engine is installed, calling LabVIEW code with the RTE in TestStand generates an error message stating that msvcp140.dll is missing. 
  • After uninstalling software from my Windows cDAQ controller, trying to run LabVIEW generates an error stating that msvcp140.dll is missing.
  • When I try to install NI software such as LabVIEW, I receive the following error:
What can I do to resolve this error?

Solution

  1. Issues related to corruption of msvcp140.dll can usually be corrected by installing the Visual C++ Redistributable for Visual Studio 2015. If installing the redistributable itself doesn't work, you can try installing the latest update to it.
NOTE: When downloading the redistributable or redistributable updates, select the executable corresponding to the same bitness as your LabVIEW program, not your operating system. vc_redist.x64.exe corresponds to 64-bit LabVIEW, and vc_redist.x86.exe corresponds to 32-bit LabVIEW.
  1. Completely uninstall and reinstall National Instruments software on the affected machine - this can fix potential software corruption causing issues with the msvcp140.dll, as well as other DLLs.
  2. If the above steps do not resolve the issue, it will likely be necessary to reimage the affected computer..