Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

"Runtime error 13" with pre-488.2 GPIB

I'm setting up a clone of a test station using Win98, HP5508A Display, HP5518A Laser, NI AT-GPIB/TNT(PnP) ISA card. I keep getting "Runtime Error 13, Type Mismatch" as an error when I start the program. I tried to send commands using NI488 software and found that the HP instruments are from a pre-488.2 standard. The only thing different between the two stations is the working one is running Windows 95.
0 Kudos
Message 1 of 4
(3,966 Views)
Hi,
The error you are seeing is a Windows error

Lets first check to see that you are using the right driver version
for your Operating System.
Please look at the article found here. It will help you match
your OS to the right Driver version.

For Windows 98 the correct 488 driver version is 2.2 and
for Windows 95 it is 1.7

Let us know if this helps.
Christian A
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,941 Views)

Thanks Chris

I did have 1.7 installed originally and now I've updated to 2.2. Still get the same error message. I thought that since the HP5508A was pre-488.2, it would need to run an earlier than ver 2.2 of the 488 software. Does the 488.2 software only pertain to the NI PnP card?

I did try to install the complete VB program and run the debug. It stops when it's trying to read from the 5508A display unit. There is a blank value for what is returned. I know the peripheral equipment is working as I used another computer with the laser display I'm trying to make work, and it works fine.

I seem to be sensing a problem around the Gpib-32.dll. Probably because this seems to be a Gpib problem. I have tried swapping in another version of this dll only to get a Gpibmngr.dll error.

Anything else you can offer would be appreciated.

0 Kudos
Message 3 of 4
(3,925 Views)
I finally figured it out. I ran the GPIB config utility which led me to the file "GPIB.ini" in the Windows\System folder. I edited the DEV1 name to the laser display unit I was trying to communicate, "5508A". Also had to remove all the quotation marks that the config utility added. Saved the file and it ran perfectly after that. 
0 Kudos
Message 4 of 4
(3,842 Views)