{"id":24462,"library":"python-vxi11","title":"python-vxi11","description":"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.","status":"active","version":"0.9","language":"python","source_language":"en","source_url":"https://github.com/python-ivi/python-vxi11","tags":["vxi-11","instrument control","ethernet","test equipment","python-ivi"],"install":[{"cmd":"pip install python-vxi11","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Importing Instrument directly from vxi11 fails; you must import the vxi11 module and reference vxi11.Instrument.","wrong":"from vxi11 import Instrument","symbol":"Instrument","correct":"import vxi11; instr = vxi11.Instrument('hostname')"}],"quickstart":{"code":"import vxi11\ninstr = vxi11.Instrument('192.168.1.10')\nprint(instr.ask('*IDN?'))\ninstr.close()","lang":"python","description":"Connect to an instrument and query its identity."},"warnings":[{"fix":"Wrap the first command in a try block to catch timeouts or connection errors.","message":"The constructor 'vxi11.Instrument(host, ...)' does not raise an exception on connection failure immediately; errors may occur on first command.","severity":"gotcha","affected_versions":"all"},{"fix":"Pass timeout in milliseconds, e.g., timeout=5000 for 5 seconds.","message":"Timeout parameter is in milliseconds, not seconds. Default is 10000 (10 seconds).","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'instr.write('*IDN?\\n')' then 'instr.read()' if needed.","message":"The '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'.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install python-vxi11' and ensure the correct Python environment.","cause":"The library is not installed.","error":"ModuleNotFoundError: No module named 'vxi11'"},{"fix":"Use 'import vxi11' and then reference 'vxi11.Instrument()'.","cause":"Importing 'Instrument' directly from vxi11 (e.g., 'from vxi11 import Instrument').","error":"AttributeError: module 'vxi11' has no attribute 'Instrument'"},{"fix":"Verify network connectivity and increase timeout (milliseconds).","cause":"Instrument unreachable or wrong IP/hostname, or timeout too short.","error":"vxi11.Vxi11Error: VXI-11 connection timeout"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}