Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Need an updated VBIB32.bas file that contains updated RegisterGPIBGlobals

Solved!
Go to solution

I am using the new USB GPIB device on Windows XP, with VB6. In the VBIB32.bas file that I have, the RegisterGPIBGlobals routine doesn't have a case for this GPIB. It is returning a 5. Is there an updated file available?

 

Thanks,

Tim

0 Kudos
Message 1 of 8
(4,767 Views)

Tim8w,

 

I am not familiar with this file, and it is not on my hard drive.  What version of the NI-488.2 driver are you using?

 

Eric K

Applications Engineering

National Instruments

0 Kudos
Message 2 of 8
(4,753 Views)
2.42 or 2.52 it doesn't really matter. The file is for VB6. Without an updated RegisterGPIBGlobals, I can't get the errors being returned...
0 Kudos
Message 3 of 8
(4,749 Views)

Tim,

 

The RegisterGPIBGlobals( ) in the VBIB-32.BAS module basically has not changed since its inception in 1995 other than to add additional information about the returned error codes.

 

And RegisterGPIBGlobals( ) is not specific to certain versions of National Instruments GPIB Interfaces. The same VB application should work with any GPIB-USB, PCI-GPIB, GPIB-ENET/100, and so on.

 

As I mentioned, a VB app should work with any version of GPIB Interface, so I am at a loss to know what has gone haywire for you. Out of curiosity, what is the part number of the GPIB Interface that you are using?

 

gpibtester

0 Kudos
Message 4 of 8
(4,735 Views)

Model Number: GPIB-USB-HS

Part number: 187965B-01

 

If there is no other way to see what's happening, maybe I'll switch back to the Internal PCI card. All I really want to know is what error I'm getting returned back from the Mensor device...

 

P.S. - Sorry for the delay in response. Our company had a manditory 1 week shutdown last week...

0 Kudos
Message 5 of 8
(4,684 Views)

Tim,

 

Thank you for your reply for the Part Number! It is for a GPIB-USB-HS that should definitely work!

 

In order to help figure out what's wrong, let's take a step back to check out some basic things.

 

1. To make sure the GPIB Software is correctly installed and that the GPIB Hardware is working, did you run the Troubleshooting Wizard/Utility? If so, did it pass? If not, could you please test the GPIB-USB-HS using the Troubleshooting Wizard/Utility and let me know if it passes or not?

 

2. Did you try one of the VB sample programs that ships with GPIB? If so, does it work? If not, could you please try one of the sample programs out? The Query ones will return the Identification Information from the Device, if the Device supports IEEE-488.2 protocol.

 

For 2.4, the samples are located in C:\Program Files\National Instruments\NI-488.2\Languages\ directory.

 

For 2.5, the samples are located in C:\Documents and Settings\All Users\Documents\National Instruments\NI-488.2\Languages\ directory.

 

3. The RegisterGpibGlobals( ) is failing as it is unable to allocate Thread Local Storage (TLS). How much memory is in the machine you are using? Is it the same machine that has the working Internal PCI card installed? Is it possible that the machine is running low on Virtual Memory swap space?

 

Thank you again for the Part Number! If you are able to try out the 3 items listed above, I would be very interested in hearing your results!

 

gpibtester

0 Kudos
Message 6 of 8
(4,674 Views)
Solution
Accepted by topic author Tim8w

The problem ended up being the driver. My laptop had both 2.3 and 2.52 drivers on it. When using the 2.3 drivers nothing worked. Running with the new 2.52 drivers, everything worked just fine. Looks like I'll need to update all of our PCs to use the 2.52 drivers so that it'll work with newer GPIB devices...

 

Thanks for your help!

0 Kudos
Message 7 of 8
(4,670 Views)

Tim,

 

That's good news that a newer driver, 2.5.2, works for you! Although, 2.3 should work fine with GPIB-USB-HS. But regardless, you have a fairly simple workaround and your machines will have the same version of the driver on them.

 

gpibtester

0 Kudos
Message 8 of 8
(4,667 Views)