Skip to main content

PyVISA

Continuous integration Documentation building Keysight assisted testing Code Coverage Documentation Status PyPI - License PyPI

A Python package for support of the “Virtual Instrument Software Architecture” (VISA), in order to control measurement devices and test equipment via GPIB, RS232, Ethernet or USB.

Description

The programming of measurement instruments can be real pain. There are many different protocols, sent over many different interfaces and bus systems (GPIB, RS232, USB). For every programming language you want to use, you have to find libraries that support both your device and its bus system.

In order to ease this unfortunate situation, the Virtual Instrument Software Architecture (VISA) specification was defined in the middle of the 90’s. Today VISA is implemented on all significant operating systems. A couple of vendors offer VISA libraries, partly with free download. These libraries work together with arbitrary peripheral devices, although they may be limited to certain interface devices, such as the vendor’s GPIB card.

The VISA specification has explicit bindings to Visual Basic, C, and G (LabVIEW’s graphical language). Python can be used to call functions from a VISA shared library (.dll, .so, .dylib) allowing to directly leverage the standard implementations. In addition, Python can be used to directly access most bus systems used by instruments which is why one can envision to implement the VISA standard directly in Python (see the PyVISA-Py project for more details). PyVISA is both a Python wrapper for VISA shared libraries but can also serve as a front-end for other VISA implementation such as PyVISA-Py.

VISA and Python

Python has a couple of features that make it very interesting for controlling instruments:

  • Python is an easy-to-learn scripting language with short development cycles.

  • It represents a high abstraction level [2], which perfectly blends with the abstraction level of measurement programs.

  • It has a rich set of native libraries, including numerical and plotting modules for data analysis and visualisation.

  • A large set of books (in many languages) and on-line publications is available.

Requirements

  • Python (tested with 3.6+)

  • VISA (tested with NI-VISA 17.5, Win7, from www.ni.com/visa and Keysight-VISA )

Installation

Using pip:

$ pip install pyvisa

or easy_install:

$ easy_install pyvisa

or download and unzip the source distribution file and:

$ python setup.py install

Documentation

The documentation can be read online at https://pyvisa.readthedocs.org

Metadata

Release files for PyVISA 1.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyVISA 1.12.0
File Size Uploaded Provenance Actions
PyVISA-1.12.0.tar.gz 226.3 kB Without provenance Details for PyVISA-1.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyVISA 1.12.0
File Interpreter ABI Platform Actions
PyVISA-1.12.0-py3-none-any.whl Python 3 none any Details for PyVISA-1.12.0-py3-none-any.whl

Total release size: 401.8 kB

Release files / PyVISA-1.12.0.tar.gz

Download URL PyVISA-1.12.0.tar.gz
Size 226.3 kB
Tags Source
SHA-256 checksum
How to use checksums
73a38e6bf7431449bd3e1c7bf51a995f62fcae68df580c01c30628629c6b5cbf
BLAKE2b-256 checksum
How to use checksums
67e8565ec099db6048b866dc28a38a5937913e7de1c247bee0ae26fc5d10bd1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / PyVISA-1.12.0-py3-none-any.whl

Download URL PyVISA-1.12.0-py3-none-any.whl
Size 175.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cbe2f37f75dd233638154f377af7522b8c1dc8324cce3dc3e9563a9b7b84add
BLAKE2b-256 checksum
How to use checksums
343989f7db730e3c751d7738d52ce05da604796f50cccc907fd650cf217a7bc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for PyVISA 1.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page