Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
en:python-ivi:readme [2013/02/17 10:35]
alex
en:python-ivi:readme [2013/02/17 21:07]
alex
Line 21: Line 21:
 ===== Instrument communication ===== ===== Instrument communication =====
  
-Python IVI can use Python ​VXI11, pySerial and linux-gpib to connect to instruments. The implementation of the initialize method takes a VISA resource string and attempts to connect to an instrument. If the resource string starts with TCPIP, then Python IVI will attempt to use Python ​VXI11. If it starts with GPIB, it will attempt to use linux-gpib'​s python interface. If it starts with ASRL, it attemps to use pySerial. Integration with PyVISA is planned, but not currently supported. ​+Python IVI can use Python ​VXI-11, pySerial and linux-gpib to connect to instruments. The implementation of the initialize method takes a VISA resource string and attempts to connect to an instrument. If the resource string starts with TCPIP, then Python IVI will attempt to use Python ​VXI-11. If it starts with GPIB, it will attempt to use linux-gpib'​s python interface. If it starts with ASRL, it attemps to use pySerial. Integration with PyVISA is planned, but not currently supported. ​
  
 ===== A note on standards compliance ===== ===== A note on standards compliance =====
Line 40: Line 40:
 ===== Usage example ===== ===== Usage example =====
  
-This sample Python code will use Python IVI connect to an Agilent MSO7104A over LXI (VXI11), configure the timebase, trigger, and channel 1, capture a waveform, and read it out of the instrument.  ​+This sample Python code will use Python IVI connect to an Agilent MSO7104A over LXI (VXI-11), configure the timebase, trigger, and channel 1, capture a waveform, and read it out of the instrument.  ​
  
 <code python> <code python>
Line 102: Line 102:
 import ivi import ivi
 # connect to E3649A via GPIB # connect to E3649A via GPIB
-#awg = ivi.agilent.agilentE3649A("​GPIB0::​5::​INSTR"​)+#psu = ivi.agilent.agilentE3649A("​GPIB0::​5::​INSTR"​)
 # connect to E3649A via E2050A GPIB to VXI11 bridge # connect to E3649A via E2050A GPIB to VXI11 bridge
 psu = ivi.agilent.agilentE3649A("​TCPIP0::​192.168.1.105::​gpib,​5::​INSTR"​) psu = ivi.agilent.agilentE3649A("​TCPIP0::​192.168.1.105::​gpib,​5::​INSTR"​)