Skip to main content
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

Download files

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

Source Distribution

PyVISA-1.12.0.tar.gz (226.3 kB view details)

Uploaded Source

Built Distribution

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

PyVISA-1.12.0-py3-none-any.whl (175.5 kB view details)

Uploaded Python 3

File details

Details for the file PyVISA-1.12.0.tar.gz.

File metadata

  • Download URL: PyVISA-1.12.0.tar.gz
  • Upload date:
  • Size: 226.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for PyVISA-1.12.0.tar.gz
Algorithm Hash digest
SHA256 73a38e6bf7431449bd3e1c7bf51a995f62fcae68df580c01c30628629c6b5cbf
MD5 4f21ee04fccfa6edbdea2f26abde7e5b
BLAKE2b-256 67e8565ec099db6048b866dc28a38a5937913e7de1c247bee0ae26fc5d10bd1f

See more details on using hashes here.

File details

Details for the file PyVISA-1.12.0-py3-none-any.whl.

File metadata

  • Download URL: PyVISA-1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 175.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for PyVISA-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cbe2f37f75dd233638154f377af7522b8c1dc8324cce3dc3e9563a9b7b84add
MD5 06048ca6e733534fe561046b088b99a9
BLAKE2b-256 343989f7db730e3c751d7738d52ce05da604796f50cccc907fd650cf217a7bc0

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