--- id: rsinstrument version: "1.126.0" license: MIT license_treatment: permissive maintenance: active --- # RsInstrument — VISA or Socket Communication Module for Rohde & Schwarz Instruments License: permissive · Maintenance: active · Downloads: 117.6K/mo ## What it is and what it does RsInstrument is a Python library that wraps VISA communication to simplify remote control of Rohde & Schwarz test instruments. It abstracts the low-level SCPI protocol details, allowing developers to send commands and parse responses from oscilloscopes, spectrum analyzers, power supplies, and other R&S equipment over network or local connections. The library handles connection setup, error checking, logging, and data type conversion. Typical use involves instantiating an instrument object with a VISA resource string, then calling methods like query_str() to send SCPI queries and retrieve responses. It supports context managers for error suppression, SCPI logging for debugging, and utility methods for common operations like option checking and data parsing. The package is actively maintained and supports modern Python versions (3.10–3.14). Use it for: - Automate test sequences on R&S oscilloscopes or spectrum analyzers from a Python script - Log and debug SCPI communication to troubleshoot instrument control issues - Build a measurement application that queries multiple R&S instruments and aggregates results - Integrate R&S power supplies or sensors into a larger lab automation framework - Suppress and handle instrument errors gracefully within specific code blocks ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. RsInstrument provides a Python interface for communicating with Rohde & Schwarz test instruments over VISA (TCPIP, USB, GPIB) or socket connections, handling SCPI command queries and responses. Yes. RsInstrument is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. Install it if you need to control Rohde & Schwarz instruments from Python. The only gotcha is the Python 3.10+ requirement; if you're on an older version, you cannot use this package. ## Install pip install rsinstrument uv add rsinstrument poetry add rsinstrument ## Installing RsInstrument Before you install: Low friction install with only two runtime dependencies (pyvisa and typing-extensions). Actively maintained with recent releases; last commit 2026-06-01 and version released 2026-07-21. Requires Python 3.10 or later. License in practice: MIT license is permissive, allowing use in commercial and open-source projects with minimal restrictions beyond attribution. Quickstart: pip install rsinstrument from RsInstrument import RsInstrument instr = RsInstrument('TCPIP::192.168.56.101::hislip0', id_query=True, reset=True) idn = instr.query_str('*IDN?') print('Hello, I am: ' + idn) Requires Python 3.10 or later; target instrument must be reachable via VISA transport (TCPIP, USB, GPIB, or socket). Verify before relying: - Whether pyvisa-sim backend is fully compatible with all RsInstrument features beyond the fix noted in version 1.125.0.124 - Extent of MCP server functionality and whether it requires additional dependencies beyond the base install ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 117.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags VISA instrument communication, rohde schwarz instrument control, SCPI command interface, test equipment remote control, instrument driver python, laboratory instrument automation, TCPIP socket instrument, instrument-driver, visa-scpi, lab-automation [View on SkillFed](https://skillfed.io/packages/rsinstrument) · [View on PyPI](https://pypi.org/project/rsinstrument/)