Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating GPIB from Windows 7 to Windows 11

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.

0 Kudos
Message 1 of 3
(2,219 Views)

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).

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(2,199 Views)

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.

  •  Change from gpib-32.dll to ni488.2.dll (it is similar, but some functions are not compatible, so you will also need to modify the program)
  • Do not call GPIB DLL directly, use VISA
    (Although this also requires major modification of the program, interfaces other than GPIB can be easily used. This is the most recommended method.)
  • Change to 32-bit version of Office
    (Although it is a temporary measure, it is the quickest method in terms of time and effort. However, considering the possibility that the 32-bit version of Office will be discontinued in the future, we recommend one of the above methods.)

If you use VISA, please refer to the link below.

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Find-all-Instruments-on-GPIB-using-VBA/m-p/4...

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/VBA-USB-control-example/m-p/4332873

 

 

Message 3 of 3
(2,185 Views)