Registry / serialization / python-vxi11

python-vxi11

JSON →
library0.9pypypi✓ verified 86d ago

A Python driver for controlling instruments over Ethernet using the VXI-11 protocol. It allows remote control of oscilloscopes, power supplies, and other test equipment. Current version 0.9, released periodically.

pip install python-vxi11
INSTALL
IMPORT
SIG · PYTHON-VXI11
P
python-vxi11
serializationpythonv0.9
Install
2.4s avg
Import
19ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.9 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.018s · 19.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.4s · import 0.012s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Instrument
import vxi11; instr = vxi11.Instrument('hostname')
from vxi11 import Instrument
Importing Instrument directly from vxi11 fails; you must import the vxi11 module and reference vxi11.Instrument.

Connect to an instrument and query its identity.

import vxi11 instr = vxi11.Instrument('192.168.1.10') print(instr.ask('*IDN?')) instr.close()
Debug
Known issues
gotchaThe constructor 'vxi11.Instrument(host, ...)' does not raise an exception on connection failure immediately; errors may occur on first command.
fix
Wrap the first command in a try block to catch timeouts or connection errors.
affects: all
gotchaTimeout parameter is in milliseconds, not seconds. Default is 10000 (10 seconds).
fix
Pass timeout in milliseconds, e.g., timeout=5000 for 5 seconds.
affects: all
gotchaThe 'ask()' method sends a command and reads response; it does not include a trailing newline. For commands that require termination, use 'write()' explicitly with '\n'.
fix
Use 'instr.write('*IDN?\n')' then 'instr.read()' if needed.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'vxi11'
The library is not installed.
fix
Run 'pip install python-vxi11' and ensure the correct Python environment.
AttributeError: module 'vxi11' has no attribute 'Instrument'
Importing 'Instrument' directly from vxi11 (e.g., 'from vxi11 import Instrument').
fix
Use 'import vxi11' and then reference 'vxi11.Instrument()'.
vxi11.Vxi11Error: VXI-11 connection timeout
Instrument unreachable or wrong IP/hostname, or timeout too short.
fix
Verify network connectivity and increase timeout (milliseconds).
Upgrade
Version history
0.9latest on PyPI · released Jan 18, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
python-vxi11 — pip install python-vxi11 · libregistry