Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent 34970 EZ scan.vi error

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.

0 Kudos
Message 1 of 6
(5,341 Views)
Have you chosen the correct VISA resource by clicking on the pull-down menu and selecting your connection?
0 Kudos
Message 2 of 6
(5,337 Views)

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.

0 Kudos
Message 3 of 6
(5,330 Views)
I don't see a 320 second wait and the error would be coming from the initialize function and that is the very first function that is called.
0 Kudos
Message 4 of 6
(5,323 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(5,318 Views)

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.

0 Kudos
Message 6 of 6
(5,313 Views)