Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

DllImportAttribute

I am using VB.net to develope code using XP Pro as an operating system. I am also attempting to use the instrument drivers provided by Agilent for the instruments, ie E3644A power supply.

I have installed NI Visa, NI 488.2 along with the dll for the power supply.

When the program attempts to execute the Age364xa_init command the program blows up.

I have converted the variable types in the Age364xa.bas file to the equivalent for VB.net, i.e. integer have become a short and long have become integers.

Any suggestions?
0 Kudos
Message 1 of 2
(3,469 Views)
Do you have the latest VISA & GPIB version? You can download the latest visa driver from ftp://ftp.ni.com/support/visa/drivers/ and GPIB driver from http://www.ni.com/support/install.

Try the VB.Net wizard to convert the VB language interface, http://zone.ni.com/devzone/explprog.nsf/webmain/10BECD5E900D05D7862568FF0055C2CC?opendocument&node=DZ52353_US

Also does your code work in VB 6.0?
0 Kudos
Message 2 of 2
(3,469 Views)