Skip to main content

VISA communication module for Rohde & Schwarz instruments

Project description

RsInstrument is a Python module that provides convenient way of communicating with R&S instruments over VISA It uses PyVisa to build instrument model layer that provides all the required tasks you might need when remote-controlling your instrument:

  • Initializing a new session with setting all the required VISA and instrument registers depending on the session type
  • Identification of the instrument, supported models, evaluation of the instrument options
  • Special actions, e.g. Self-test, reset
  • Typical text communication - Write / Query / Query
  • OPC-synchronised actions - Write / Query with OPC. The synchronization mechanism can be: Status byte polling / *OPC? query, Service Request
  • Asynchronous events-driven OPC-synchronised actions. After the instrument has finished the operation, a registered event handler is invoked
  • Binary data transfer - Write / Query bin data
  • Transfer of files between PC and Instrument, the size is unlimited
  • Binary or ASCII arrays transfers - adaptable querying of float / double / integer arrays The response is processed correctly regardless whether it arrives as binary data or ASCII data
  • Instrument status checking (SYSTem:ERRor?) after each command. This can be switched OFF if desired
  • Optional feature of sending (*OPC?) after each Write command
  • Multi-thread locking of the session, also available throughout multiple RsInstrument instances
  • Sharing of the already openeed session with another RsInstrument instance, so the physical VISA session is still only one
  • Logging of the communication
  • Generating events if:
    • instrument reports an error
    • Operation Register event has occured
    • Questionable Register event has occured
    • big transferred data (write or read) are split into segments. This allows for showing the transfer progress, or in case of read operation processing partial data without having to wait for the complete response.

Version history:

Version 1.2.0.25 (03.08.2020)

  • Fixed reading of long strings for NRP-Zxx sessions

Version 1.1.0.24 (16.06.2020)

  • Fixed simulation mode

Version 1.0.0.21

  • First released version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RsInstrument-1.2.0.25.tar.gz (52.8 kB view details)

Uploaded Source

File details

Details for the file RsInstrument-1.2.0.25.tar.gz.

File metadata

  • Download URL: RsInstrument-1.2.0.25.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4

File hashes

Hashes for RsInstrument-1.2.0.25.tar.gz
Algorithm Hash digest
SHA256 0be9e6face133c55bf7258bb12e8eb1400815553b7685d63eaf63fab06dcc503
MD5 5dd2c88ed52afd4df0f93cb03ed858d9
BLAKE2b-256 5481063e5bb4b1bb8b199487ca1726d35e41475560f20ca0570359fa3436c62b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page