Skip to main content

Python VISA bindings for GPIB, RS232, TCPIP and USB instruments

Project description

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

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

PyVISA-1.13.0.tar.gz (227.0 kB view details)

Uploaded Source

Built Distribution

PyVISA-1.13.0-py3-none-any.whl (175.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PyVISA-1.13.0.tar.gz
  • Upload date:
  • Size: 227.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for PyVISA-1.13.0.tar.gz
Algorithm Hash digest
SHA256 89fa008b58465c928655459508513c51e942ca7bf3e2a727da869366e0c8f9c6
MD5 97b13c6118ca5c9ff1f1eab882321692
BLAKE2b-256 d49115e1369b1ee4769f4777a01db827a9cdbd4790e05aed97469ca860f349a7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: PyVISA-1.13.0-py3-none-any.whl
  • Upload date:
  • Size: 175.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for PyVISA-1.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 805c55a514b1993dd1e0e2b18377f36fb3db6c2cd4953886144307d0c80795ce
MD5 7aa55e51618f7ce7e0c5e34f9ae2828c
BLAKE2b-256 dde955de1f90a6e6edc095e9c3c99caaf0b8445a0fc53689d191392f9cb005fc

See more details on using hashes here.

Provenance

Supported by

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