Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:python-vxi11:readme [2013/02/17 09:38] – created alex | en:python-vxi11:readme [2013/12/17 07:24] (current) – [Usage Examples] alex | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Python VXI-11 provides a pure Python VXI-11 driver for controlling instruments over Ethernet. | Python VXI-11 provides a pure Python VXI-11 driver for controlling instruments over Ethernet. | ||
| + | |||
| + | ===== Requirements ===== | ||
| + | |||
| + | * Python 2 or Python 3 | ||
| ===== Installation ===== | ===== Installation ===== | ||
| Line 13: | Line 17: | ||
| </ | </ | ||
| - | ===== Usage ===== | + | ===== Usage Examples |
| - | Simple usage example: | + | Connecting to Agilent MSO7104A via LXI: |
| <code python> | <code python> | ||
| Line 23: | Line 27: | ||
| # returns ' | # returns ' | ||
| </ | </ | ||
| + | |||
| + | Connecting to Agilent E3649A on GPIB address 5 via HP 2050A GPIB bridge: | ||
| + | |||
| + | <code python> | ||
| + | import vxi11 | ||
| + | instr = vxi11.Instrument(" | ||
| + | print(instr.ask(" | ||
| + | # returns ' | ||
| + | </ | ||
| + | |||
| + | It is also possible to connect with VISA resource strings like so: | ||
| + | |||
| + | <code python> | ||
| + | import vxi11 | ||
| + | instr = vxi11.Instrument(" | ||
| + | print(instr.ask(" | ||
| + | # returns ' | ||
| + | </ | ||
| + | |||
| + | and: | ||
| + | |||
| + | <code python> | ||
| + | import vxi11 | ||
| + | instr = vxi11.Instrument(" | ||
| + | print(instr.ask(" | ||
| + | # returns ' | ||
| + | </ | ||
| + | |||