Python VXI-11 driver for controlling instruments over Ethernet
Project description
Python VXI-11 Readme
IMPORTANT: this is a fork of python-vxi11 package which is not maintained anymore. It was modified to support Python>=3.13, removed compatibility with Python 2 and modernized the packaging a little bit.
For more information and updates: http://alexforencich.com/wiki/en/python-vxi11/start
GitHub repository: https://github.com/python-ivi/python-vxi11
Google group: https://groups.google.com/d/forum/python-ivi
Introduction
Python VXI-11 provides a pure Python VXI-11 driver for controlling instruments over Ethernet.
Requirements
- Python 3.9 or newer
- Python 3.13 and newer require the packaged
py-xdrlibdependency
Installation
Extract and run
python -m pip install .
For development and tests, use:
.venv/bin/python -m pip install -e ".[test]"
.venv/bin/python -m pytest
Usage examples
Connecting to Agilent MSO7104A via LXI:
import vxi11
instr = vxi11.Instrument("192.168.1.104")
print(instr.ask("*IDN?"))
# returns 'AGILENT TECHNOLOGIES,MSO7104A,MY********,06.16.0001'
Connecting to Agilent E3649A on GPIB address 5 via HP 2050A GPIB bridge:
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'
Connecting to Agilent MSO-X 3014A via USBTMC via Agilent E5810 GPIB bridge:
import vxi11
instr = vxi11.Instrument("192.168.1.201", "usb0[2391::6056::MY********::0]")
print(instr.ask("*IDN?"))
# returns 'AGILENT TECHNOLOGIES,MSO-X 3014A,MY********,02.35.2013061800'
It is also possible to connect with VISA resource strings like so:
import vxi11
instr = vxi11.Instrument("TCPIP::192.168.1.104::INSTR")
print(instr.ask("*IDN?"))
# returns 'AGILENT TECHNOLOGIES,MSO7104A,MY********,06.16.0001'
and:
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'
and:
import vxi11
instr = vxi11.Instrument("TCPIP::192.168.1.201::usb0[2391::6056::MY********::0]::INSTR")
print(instr.ask("*IDN?"))
# returns 'AGILENT TECHNOLOGIES,MSO-X 3014A,MY********,02.35.2013061800'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file secbench_vxi11-0.10.tar.gz.
File metadata
- Download URL: secbench_vxi11-0.10.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9237c81d3d15c40e3b43f46a6654f10ec91bddff1a8503c6f6b7a5560ee82a5f
|
|
| MD5 |
88a70d08f866eaf0b6e7cedeb676c87b
|
|
| BLAKE2b-256 |
d28ac9bef9616888ef7272610f689dda0243281b33deb2aeb01c67bb7b3430d3
|
File details
Details for the file secbench_vxi11-0.10-py3-none-any.whl.
File metadata
- Download URL: secbench_vxi11-0.10-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef28ac0c36d539ddac4e44cb6979b2ec635d413b136a1994ef1447e01f305b02
|
|
| MD5 |
b10c85532258430810adeb2985b877b5
|
|
| BLAKE2b-256 |
497db566782c0a8993085323da39a8bc1b44f5db4a0edf8fcfbb9e85c9cf217d
|