Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

error 48 only when stepping through code

Hi,

 

I am a software guy troubleshooting an unrelated issue, but when I step through code, I get error 48: can't find gpib-32.dll. If I build the same code, I do not get the error. This is making it difficult to troubleshoot my original issue.

 

Gpib-32.dll is in the sys32 folder and this machine tests IC chips regurlarly with a build of this code, i.e. NI is apparently installed and set up correctly.

 

It is VB6 code on an XP machine.

 

I'm sorry, but I don't know much about the hardware as it is on another continent.

 

Any ideas?

 

Thanks,

Mike

0 Kudos
Message 1 of 3
(3,323 Views)

Mike

 

Do you have the GPIB 488.2 driver installed or are you directly calling the dll? http://forums.ni.com/ni/board/message?board.id=230&message.id=312&requireLogin=False You can check the version of the 488.2 driver in the Measurement and Automation Explorer under the "software" tab.  Please let me know what version you have installed, if you have the driver installed.

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 2 of 3
(3,311 Views)

Hi Richard,

 

Thanks for your reply.

The hardware is in China and I am in the US. The hardware guys fixed a gpib issue and now it works and they are back in production. It may have been a hardware issue all along.

 

But to answer your question, I'm quite sure that the GPIB 488.2 driver is installed. The line of code that caused the error is:

 

   rc = RegisterGpibGlobalsForThread(Longibsta, Longiberr, Longibcnt, ibcntl)

which references the API,

 

Private Declare Function RegisterGpibGlobalsForThread Lib "gpib-32.dll" (Longibsta As Long, Longiberr As Long, Longibcnt As Long, ibcntl As Long) As Long

I saw this in some other threads, but the issue for me was that it worked fine when compiled.

 

The 12-hour delay makes troubleshooting slow.

I will gather more data if the issue comes back.

 

Thanks for your help.

 

-Mike

 

0 Kudos
Message 3 of 3
(3,307 Views)