Differences
This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
en:python-vxi11:readme [2013/02/17 10:38] alex created |
en:python-vxi11:readme [2013/02/17 20:56] alex |
||
---|---|---|---|
Line 15: | Line 15: | ||
===== Usage ===== | ===== Usage ===== | ||
- | Simple usage example: | + | Simple usage examples: |
+ | |||
+ | Connecting to Agilent MSO7104A via LXI: | ||
<code python> | <code python> | ||
Line 24: | Line 26: | ||
</code> | </code> | ||
+ | Connecting to Agilent E3649A via HP 2050A GPIB bridge: | ||
+ | |||
+ | <code python> | ||
+ | import vxi11 | ||
+ | instr = vxi11.Instrument("192.168.1.105", "gpib,5") | ||
+ | print(instr.ask("*IDN?")) | ||
+ | # returns 'Agilent Technologies,E3649A,0,1.4-5.0-1.0' | ||
+ | </code> |