Prooblem connecting to multiple GPIB instruments on same gpib-ethernet box

27 views
Skip to first unread message

D Nicklaus

unread,
Sep 14, 2018, 2:36:45 PM9/14/18
to python-ivi
I have two instruments, with different GPIB addresses, connected to the same ICS gpib-ethernet adapter box.
Using the vxi11 python library, I can connect and communicate with either one just fine, as long as I do it
one at a time. 
But I'm unable to connect to both, and then issue commands to both successfully.
The first one I connect to works, and the second one will just hang forever when I try to read/write to it.

$ python

Python 2.7.5 (default, Nov  3 2016, 22:05:29) 

[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import vxi11

>>> instr1 = vxi11.Instrument("192.168.230.72", "gpib,2")

>>> instr2 = vxi11.Instrument("192.168.230.72", "gpib,4")

>>> Answer1 = instr1.ask("T0G")

>>> Answer1

u'N V0.0001K I00.000M'

>>> Answer2 = instr2.ask("T0G") 

It just hangs forever when I try to communicate with instr2 (the second one opened.)

Can anyone offer a solution or work-around to this problem? 

Reply all
Reply to author
Forward
0 new messages