Library Load Error When Opening a Project in LabWindows™/CVI™ 64-Bit

Updated Apr 13, 2023

Reported In


  • LabWindows/CVI

Issue Details

I am trying to open a LabWindows/CVI project using the 64-bit configuration and I am receiving a library load error message. I can open the project when using one of the 32-bit configurations but not with 64-bit.
Cannot find 64-bit program file for library "NI-CAN"
Cannot find 64-bit program file for library "VXI Library"
Cannot find 64-bit program file for library "PID Library"

The error message looks similar to the one in the screenshot below:



This error is normally shown when the LabWindows/CVI environment tries to load a library that is not available for 64-bit so it shows the library load error when you open a project in 64-bit. If you open the project in 32-bit the error will not be shown. Normally, this type of error should not prevent the user from compiling and running the project unless one of these libraries is being used in the project.

If you are not using the library mentioned in the load library error message you can clear this error by following these steps:

1. Go to the toolbar at the top of LabWindows/CVI.
2. Navigate to Library >> Customize...
3. Disable the VXI or CAN checkbox. If the error message is related to the PID library select the "C:\Program Files (x86)\National Instruments\Shared\CVI\Bin\PID.lfp" under User Libraries and click on Cut.
Customize Library Menu

4. Save your project.
5. Close LabWindows/CVI and reopen the project. The errors should be gone.

Please note that if you are using a library that is not supported in 64-bit you might see this message and additional errors when compiling the project, see the Related Links section for considerations when porting 32-bit applications to 64-bit.