Skip to main content

Simulated backend for PyVISA implementing TCPIP, GPIB, RS232, and USB resources

Project description

Build Status

PyVISA-sim

PyVISA-sim is a PyVISA backend that simulates a large part of the “Virtual Instrument Software Architecture” (VISA).

Description

PyVISA started as a wrapper for the NI-VISA library and therefore you need to install the National Instruments VISA library in your system. This works most of the time, for most people. But sometimes you need to test PyVISA without the physical devices or even without NI-VISA.

Starting from version 1.6, PyVISA allows to use different backends. These backends can be dynamically loaded. PyVISA-sim is one of such backends. It implements most of the methods for Message Based communication (Serial/USB/GPIB/Ethernet) in a simulated environment. The behaviour of simulated devices can be controlled by a simple plain text configuration file.

VISA and Python

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

  • Python is an easy-to-learn scripting language with short development cycles.
  • It represents a high abstraction level, which perfectly blends with the abstraction level of measurement programs.
  • It has a very 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 2.7, and 3.4 to 3.8)
  • PyVISA 1.6+

Installation

Using pip:

$ pip install -U pyvisa-sim

or install the development version:

$ pip install -U https://github.com/pyvisa/pyvisa-sim/zipball/master

PyVISA is automatically installed if needed.

Testing

Ensure you have tox installed. Then you can simply invoke

$ tox

to run tests for all supported Python versions, or select one with

$ tox -e pyXY

with X being the major version (2 or 3) and Y the minor version.

Documentation

The documentation can be read online at https://pyvisa-sim.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.

Files for PyVISA-sim, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size PyVISA_sim-0.4.0-py3-none-any.whl (26.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size PyVISA-sim-0.4.0.tar.gz (5.9 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page