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.13.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.13.0
File Size Uploaded Provenance Actions
PyVISA-1.13.0.tar.gz 227.0 kB Without provenance Details for PyVISA-1.13.0.tar.gz

Built distribution (wheel)

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

Total release size: 402.7 kB

Release files / PyVISA-1.13.0.tar.gz

Download URL PyVISA-1.13.0.tar.gz
Size 227.0 kB
Tags Source
SHA-256 checksum
How to use checksums
89fa008b58465c928655459508513c51e942ca7bf3e2a727da869366e0c8f9c6
BLAKE2b-256 checksum
How to use checksums
d49115e1369b1ee4769f4777a01db827a9cdbd4790e05aed97469ca860f349a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL PyVISA-1.13.0-py3-none-any.whl
Size 175.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
805c55a514b1993dd1e0e2b18377f36fb3db6c2cd4953886144307d0c80795ce
BLAKE2b-256 checksum
How to use checksums
dde955de1f90a6e6edc095e9c3c99caaf0b8445a0fc53689d191392f9cb005fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for PyVISA 1.13.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