--- id: pyvisa version: "1.16.2" license: The MIT License Copyright (c) 2005-2024 PyVISA Authors and contributors. See AUTHORS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) license_treatment: permissive maintenance: active --- # PyVISA — Python VISA bindings for GPIB, RS232, TCPIP and USB instruments License: permissive · Maintenance: active · Downloads: 1.1M/mo ## What it is and what it does PyVISA is a Python wrapper around the VISA (Virtual Instrument Software Architecture) standard, which abstracts communication with laboratory instruments across multiple protocols and physical interfaces. Rather than writing protocol-specific code for each instrument type and bus system, developers use PyVISA's unified API to query and control devices connected via GPIB, RS232, Ethernet, or USB. The package acts as a bridge between Python and vendor-supplied VISA libraries (such as NI-VISA), translating high-level Python calls into the appropriate low-level VISA function calls. The package is designed for scientists, engineers, and test automation developers who need to automate measurement equipment without learning each device's proprietary protocol. It handles the abstraction layer between Python's ease of use and the complexity of instrument communication, making it practical to write portable measurement scripts that work across different hardware setups. Use it for: - Automate data acquisition from oscilloscopes, multimeters, and spectrum analyzers in a laboratory environment. - Build test automation scripts for production line quality assurance that communicate with multiple instruments over different bus types. - Write portable measurement applications that can work with different vendor instruments by swapping only the VISA library backend. - Integrate instrument control into data analysis pipelines where Python handles both communication and numerical processing. - Prototype instrument control logic interactively in Jupyter notebooks before deploying to production test systems. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PyVISA provides Python bindings to VISA libraries for controlling measurement instruments and test equipment over GPIB, RS232, Ethernet, and USB interfaces. Yes. PyVISA is a mature, actively maintained library (Production/Stable since 2008, recent commits, 948 GitHub stars) with minimal dependencies and no known vulnerabilities. It directly solves a real problem—instrument control—for a well-defined audience. Install it if you need to automate laboratory equipment; skip it if you have no instruments to control or use vendor-specific SDKs instead. ## Install pip install pyvisa uv add pyvisa poetry add pyvisa ## Installing PyVISA Before you install: Low friction installation with a single lightweight dependency (typing_extensions). The package is actively maintained with recent commits and has been stable since its 2008 inception, now in Production/Stable status. License in practice: MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects. Quickstart: pip install pyvisa import pyvisa rm = pyvisa.ResourceManager() instruments = rm.list_resources() my_instrument = rm.open_resource(instruments[0]) response = my_instrument.query('*IDN?') my_instrument.close() Requires a VISA library installed on the system (e.g., NI-VISA or Keysight-VISA); PyVISA is a wrapper that calls these shared libraries. Verify before relying: - Whether PyVISA-Py (the pure-Python VISA implementation mentioned in the description) is automatically available or requires separate installation. - Specific VISA library versions known to work reliably with PyVISA 1.16.2 beyond the tested NI-VISA 17.5 and Keysight-VISA mentioned. ## Package facts - License: The MIT License Copyright (c) 2005-2024 PyVISA Authors and contributors. See AUTHORS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 1.1M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags VISA instrument control python, GPIB USB RS232 measurement devices, instrument communication protocol, test equipment automation, laboratory device control, virtual instrument software architecture, hardware interface abstraction, hardware-interface, instrument-control, test-automation [View on SkillFed](https://skillfed.io/packages/pyvisa) · [View on PyPI](https://pypi.org/project/pyvisa/)