Solution
These LabVIEW errors occur due to multiple causes. Anti-virus blockers, OS Permissions, use of low-level drivers and Real-Time targets are the most common ones, review the following suggestions and complete the steps according to your scenario:
General Troubleshooting
Follow the next steps to discard potential blockers from an anti-virus or OS permissions
- Disable any anti-virus temporarily for troubleshooting.
- Run LabVIEW as administrator by right-click LabVIEW shortcut and select Run as administrator.
- Make sure that the LabVIEW and shared folders are set to read/write instead of read-only.
- Open LabVIEW and then your project.
- Build your executable and check if the error persists.
- Note: In case you shutdown, restart or log off your computer, LabVIEW will return to the default privileges.
If these steps resolve your issue, you may choose to examine your anti-virus and permissions settings in Windows for the source of the problem. LabVIEW does not normally require administrative rights to build applications, and works with most anti-virus software.
- If the antivirus is blocking the building process, whitelist the LabVIEW.exe and NI related Folders:
- C:\Program Files\National Instruments
- C:\Program Files\NI
- C:\Program Files (x86)\National Instruments
- If the procedure is blocked due to privileges consider any of the following 2 alternatives:
Problems associated with low-level drivers
If you are using a low-level driver in your project, such as
user32.dll, you may encounter this error when trying to include the shared library in your build. To resolve this issue, you can try the following:
- If using a Call Library Function Node, set the path to just the name of the dll, such as user32.dll in the Call Library Function Node settings. Do not specify the path as the full path to the dll.
- In your build specifications, navigate to the Additional Exclusions tab on the left side
- Check the box next to Exclude dependent shared libraries. This will cause the executable to rely on the operating system of the target computer to find and use the appropriate low-level driver that should already come installed with the operating system.
- Build your executable. It should build without this error.
Problems associated with building process for Real-Time executables
If you are building a Real-Time executable in LabVIEW for an PXI, the error can occur due to the set options in the RT build specifications.
- Try to disable the "Include RT PXI Target (XX.XXX...) hardware configuration" under the Advanced tab.