Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

register GPIB-32.dll

We have a Visual Basic application. One of our user can't register gpib-32.dll library. The Mesurament & Automation configuration is right.

His software version is 1.41
0 Kudos
Message 1 of 7
(11,798 Views)
Hi Ana-
to register a dll or ocx file in Windows go to Start -> Run and type:
regsvr32
e.g.
regsvr32 c:\winnt\system32\dhub32.ocx

good luck
ben schulte
national instruments
Message 2 of 7
(11,798 Views)
Hi, im running also to this kind of problem.

I tried running regsvr32 Gpib-32.dll on my machine , it generates this error
" A dynamic  link library(DLL) initialization routine failed"

Are there prerequisites in using GPIB-32.dll like some software that has to be installed . I tried the dependency checker and no error was reported.

I dont know if I have  downloaded the correct files. Here are the list of what I have
GPIB-32.DLL
GPIB-16.DLL
GPIB.DLL

Im using VB6 on top of Windows XP.

Thanks,

Marvin


Message Edited by trashVin on 05-22-2008 09:52 PM
Human knowledge belongs to the world
0 Kudos
Message 3 of 7
(11,402 Views)
trashVin,
 
Gpib-32.dll is a standard win32 dll. You do not need to register the dll to use it. Typically, when you want to communicate with a GPID devise, you should install our device driver and use the higher level functions. Gpid-32.dll is the lower level dll that you typically do not need to access directly. If you are sure you need to access it directly, then this developer zone article is a good point to start.
Regards,

Song Du
Systems Software
National Instruments R&D
0 Kudos
Message 4 of 7
(11,393 Views)

Hi,

I am new with GPIB. However, I don't care too much on the level of the program. The important thing for me is to be able to communicate with external device by using GPIB-USB-B with VB6. I already install the driver for this device but I don't know how to use it, which dll or ocx that allow me to communicate through GPIB-USB-B from VB6.

Does any one know how to read/write the command to the device from VB6 via GPIB-USB-B adaptor?

Best regards.



Message Edited by KY-Leng on 06-28-2008 10:21 AM
0 Kudos
Message 5 of 7
(11,144 Views)
Hey KY-leng!

If you installed the correct 488.2 drivers, you will be able to find premade examples in the following directory:

C:\Documents and Settings\All Users\Documents\National Instruments\NI-488.2\Languages

These will be a great place to start for intro to GPIB.  Hope this helps!
Best Regards,
Song Mu
National Instruments San Diego
0 Kudos
Message 6 of 7
(11,100 Views)

I don't know whether this problem was ever solved but I tried everything mentioned in all the threads and nothing  works.

 

I'm using NI-USB-GPIB-A under Windows XP and I'm trying to write software in VB6.0 to control GPIB devices.

 

Whether it's my program or one of the examples sited in the directory in the previons post I get a message stating that the GPIB-32.dll cannot be found (runtime Error 48).

 

This happens when the program goes to execute the registerGPIBglobalsForThread function according to the VB debugger.

 

I suspect that this DLL is an old windows version dll and is not accessable under XP.

 

How can I use my NI-USB-GPIB-A under Windows XP with VB6.0?

Chuck Lippmeier

0 Kudos
Message 7 of 7
(10,565 Views)