Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
en:python-vxi11:readme [2013/08/08 07:05] alex [Installation] |
en:python-vxi11:readme [2013/12/17 08:23] alex [Usage Examples] |
||
---|---|---|---|
Line 36: | Line 36: | ||
# returns 'Agilent Technologies,E3649A,0,1.4-5.0-1.0' | # returns 'Agilent Technologies,E3649A,0,1.4-5.0-1.0' | ||
</code> | </code> | ||
+ | |||
+ | It is also possible to connect with VISA resource strings like so: | ||
+ | |||
+ | <code python> | ||
+ | import vxi11 | ||
+ | instr = vxi11.Instrument("TCPIP::192.168.1.104::INSTR") | ||
+ | print(instr.ask("*IDN?")) | ||
+ | # returns 'AGILENT TECHNOLOGIES,MSO7104A,MY********,06.16.0001' | ||
+ | </code> | ||
+ | |||
+ | and: | ||
+ | |||
+ | <code python> | ||
+ | import vxi11 | ||
+ | instr = vxi11.Instrument("TCPIP::192.168.1.105::gpib,5::INSTR") | ||
+ | print(instr.ask("*IDN?")) | ||
+ | # returns 'Agilent Technologies,E3649A,0,1.4-5.0-1.0' | ||
+ | </code> | ||
+ | |||
+ |