03-19-2014 12:51 PM
I am trying to talk to an Agilent 34970A using the Agilent 34970 EZ scan.vi. I am having trouble getting it to work via GPIB to USB using a NI GPIB-USB-HS. I am getting an error in VISA Open. Error - 1073807346 occured at VISA Open in Agilent 34970.lvlib:Initialize.vi Reason: VISA(Hex 0xBFFF000E) The given session or object reference is invalid. I am using Labview 2012 with WIN7.
03-19-2014 01:02 PM
03-19-2014 02:36 PM
Yes I am selecting GPIB0::9::INSTR. I may have found the problem. The current and frequency VI's have a wait of 320000. I don't know why it's so long, but I think thats keeping the main vi from closing and causing an error.
03-19-2014 03:13 PM
03-19-2014 03:23 PM
@snowman2014 wrote:
I am getting an error in VISA Open. Error - 1073807346 occured at VISA Open in Agilent 34970.lvlib:Initialize.vi Reason: VISA(Hex 0xBFFF000E) The given session or object reference is invalid.
That just screams that you are using the wrong GPIB address. Make sure the instrument is set to the right GPIB address as well as making sure the GPIB interface is actually turned on.
My first check would be to open up MAX and do the "Scan For Instruments" on the GPIB interface and make sure the instrument shows up there. Then use the interface in MAX to try to talk to the instrument.
03-19-2014 05:08 PM
I extracted all the files out of the EZ library and put them into a folder. There was something wrong with some of the paths, not sure what but now it works. I don't see how that would be related to not seeing the instrument. It must have been hung up somehow. Thanks for your help.