RsInstrument is a Python communication module for Rohde & Schwarz instruments using VISA or socket connections. It provides a high-level API for SCPI command control, data transfer, and instrument discovery. Current version is 1.124.0, requiring Python >= 3.10. The library is actively maintained with regular releases.
pip install rsinstrumentVerified import paths — ran on the pinned version, not inferred.
Initialize an instrument connection and query its identification.
Install pyvisa-py and set RsInstrument(resource, backend='pyvisa-py') or reinstall the legacy 'rs' backend.
Use separate instrument instances per thread or implement proper mutex/lock.
Use format like 'TCPIP::192.168.1.1::INSTR' or 'USB::0x0AAD::0x0119::INSTR'. Validate with instr.utilities.check_resource_string()
Use `instr.visa_timeout = 5000` instead of `instr.io.timeout = 5000`.
Use `from RsInstrument import RsInstrument` to import the class.
Increase timeout: `instr.visa_timeout = 10000` (ms) or check instrument connection.
Upgrade to latest version: `pip install --upgrade rsinstrument`