LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB Addressing HP34901A - VISA

The HP34901A has 3 slots, each slot has 20 channels. How do I access
channel 1 to obtain its voltage?

? viOpen(..."GPIB0::01::(slot 1):: (channel 1)...)

Any suggestions would really help.

Thanks!
Yvonne
0 Kudos
Message 1 of 3
(3,276 Views)
Yvonne:

The VISA address contains only the physical location of the device, that is, its primary and (if necessary) its secondary address. So if the primary address is 5, then it would be:
viOpen("GPIB0::5::INSTR")

To access channels, this is device-specific functionality. Agilent should provide an instrument driver that provides access to such functionality. The initializaton function to that driver will take a VISA resource string as above.

Good luck,
Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments
0 Kudos
Message 2 of 3
(3,276 Views)
Hi Yvonne,

it seems to me that you have an istrument like
Agilent 34970A - Datalogger. Find a LabVIEW-driver @:

http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/e4c553c139f78062862568ab005fba3c?OpenDocument

or more general for HP/Agilent instruments @:

http://search.ni.com/query.html?col=alldocs&qp=%2BContentType%3AInstrumentDriver+%2BIDNetManufacturer%3A%22Hewlett-Packard%2C+Agilent+Technologies%22+%2BProductType%3A%22LabVIEW%22+%2BIDNetInterface%3A%22GPIB%22&qs=&pw=590&ws=0&la=en&qm=0&st=1&nh=500&lk=1&rf=3&layout=IDNet&ws=0&qt=Agilent

You will find there examples, how to manage closing a switch and read values.

regards
wha
0 Kudos
Message 3 of 3
(3,276 Views)