Skip to main content

Shared VXI-11 and VISA interface classes for SRS instrument drivers

Project description

srsinst.interfaces

Shared VXI-11 and VISA interface classes for SRS instrument drivers.

This package provides Vxi11Interface and VisaInterface — thin wrappers around python-vxi11 and pyvisa respectively — for use by srsinst.* instrument drivers. It lives in the srsinst namespace alongside the drivers that depend on it.


Installation

pip install srsinst.interfaces

For development (editable install):

git clone https://github.com/thinkSRS/srsinst.interfaces.git
cd srsinst.interfaces
pip install -e .

Backing libraries

python-vxi11 and pyvisa are not installed automatically — only install what your hardware actually needs:

pip install python-vxi11   # for VXI-11 (Ethernet)
pip install pyvisa         # for VISA (GPIB, USB, etc.)

If a backing library is missing, a clear ImportError is raised only when that interface class is instantiated, not at import time. Users who connect exclusively over TCP/IP or RS-232 need neither library.


Usage

srsinst.interfaces is not typically used directly — instrument drivers import from it automatically. If you are writing a new srsinst.* driver, import the classes you need:

from srsinst.interfaces import Vxi11Interface, VisaInterface

and add srsinst.interfaces to your pyproject.toml dependencies:

[project]
dependencies = [
    "srsgui>=0.4.5",
    "srsinst.interfaces",
]

Contents

Class Backing library Connection type
Vxi11Interface python-vxi11 VXI-11 over Ethernet
VisaInterface pyvisa GPIB, USB, or any VISA resource

Both classes inherit from srsgui's Interface base class and integrate with the srsgui instrument connection framework.


License

MIT License — Copyright (c) 2026 Stanford Research Systems

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

srsinst_interfaces-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

srsinst_interfaces-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file srsinst_interfaces-0.1.0.tar.gz.

File metadata

  • Download URL: srsinst_interfaces-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for srsinst_interfaces-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd0d8790515112af53cd04b7857c81511a70d9a4a56cd737e133fb1a24e260bd
MD5 dcc0c686ed7b27ca343af2ac229efa66
BLAKE2b-256 229954172c5041bf783cd4364fe2bbf56ea207bb2ad8a9271a8a188b8f133bc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for srsinst_interfaces-0.1.0.tar.gz:

Publisher: python-publish.yml on thinkSRS/srsinst.interfaces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file srsinst_interfaces-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for srsinst_interfaces-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 badb4153b16994184495da360fcb02ac659614fdaabd6708e04364b747a1f6e8
MD5 5961136c354ddb985674cd16543d52f9
BLAKE2b-256 61b2a98a81e69c14924fa160b3bf55d0b8de25f4d790e1c7179d7aeea757d08b

See more details on using hashes here.

Provenance

The following attestation bundles were made for srsinst_interfaces-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on thinkSRS/srsinst.interfaces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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