I was wondering if anyone knew how to interface with GPIB using VB 2005. I am writing a program that has a RS232 interface and a GPIB interface. I have the RS232 interface working but when I try to add a reference to Visa32.dll I get an error that it is not a vaild Com file or that it cannot be accessed.
I have read a number of examples from National Instruments and they each say to reference the Visa32.dll file. I have verified that it on the hard drive and in the Windows/system32 directory.
Any help would be appreciated
Thanks

GPIB communications
Jemini Joseph
daveman
The answer is yes. I do it all the time for my metrology lab. Depending on what GPIB controller card your are using, the manufacturer most likely will have .NET libraries for use with their controller. I use National Instruments GPIB controllers and downloaded the complete .NET 1.1 and 2.0 installer, here's the link http://digital.ni.com/softlib.nsf/websearch/cf109c216ef27ef38625722c0074a384.
Once installed, you can reference the NI assemblies (NationalInstruments.NI4882, and NationalInstruments.Common) in any project.
The two most important classes in the NI library are Board and Device. There is included documentation for use and several examples on the http://www.ni.com website.
Enjoy
migueldc01
What kind of API do this dll expose Given the error message, I would guess that it is a flat C style API. If so, you'd use P/Invoke to to access the dll...
Check out:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconconsumingunmanageddllfunctions.asp
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dndotnet/html/manunmancode.asp
for more information on P/Invoke...
Best regards,
Johan Stenberg
Echo_94
Hi
So does that means Visual Basic 2005 cannot be used to interface with GPIB
I want to use Visual Basic 2005 to control GPIB so as to automate the measurement but was not sure if Visual Basic 2005 is sufficient enough or do i need to buy Visual Basic.net
Please advice.
Thks