02-12-2009 01:24 PM
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
Solved! Go to Solution.
02-13-2009 05:54 PM
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
02-13-2009 06:25 PM
02-16-2009 09:38 AM
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
02-23-2009 11:22 AM
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...
02-23-2009 02:10 PM
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
02-23-2009 03:32 PM
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!
02-23-2009 03:50 PM
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