01-15-2024 08:53 AM
I am attempting to update some old test files that I developed using Visual Basic for Applications on a Windows 7 PC to a new PC running Windows 11.
When I try to run the file, I get the error message that the 32 bit files must be updated to 64 bit.
I have attached a screenshot that shows the error message and the related code.
Any help will be appreciated.
01-15-2024 12:19 PM
Well, was your Win 7 PC 32-bit or 64-bit?
You need to change the Gpib-32.dll to 64-bit dll for it to work in Win11. Alternatively, you can install 32-bit MS office then it could work (https://forums.ni.com/t5/Measurement-Studio-for-NET/32bit-to-64-bit-Gpib32-dll/td-p/4312634).
01-15-2024 11:27 PM
The cause of the error is that Office on Windows 11 is a 64-bit version.
However, gpib-32.dll for 64bit does not exist. (gpib-32.dll is 32bit only)
There are three options for countermeasures.
If you use VISA, please refer to the link below.
https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/VBA-USB-control-example/m-p/4332873