Skip to main content

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.6 and 2.7, 3.2+)

  • PyVISA 1.6+

Installation

Using pip:

$ pip install -U pyvisa-sim

or install the development version:

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

PyVISA is automatically installed if needed.

Documentation

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

pyvisa-sim is written and maintained by Hernan E. Grecco <hernan.grecco@gmail.com>.

Other contributors, listed alphabetically, are:

PyVISA-sim Changelog

0.2 (2015-05-19)

  • Add support for channels. (Issue #9, thanks MatthieuDartiailh)

  • Add support for error queue. (Issue #26, thanks MatthieuDartiailh)

  • Add support for TCPIP SOCKET. (Issue #29, thanks MatthieuDartiailh)

  • Removed resource string parsing in favour of to pyvisa.rname.

  • Changed find_resource and find_next in favour of list_resources.

  • Implemented new loader with bases and versioning enforcing. (Issue #16)

  • Renamed is_resource to bundled in yaml files.

  • Added support for an empty response. (Issue #15, thanks famish99)

  • Several small fixes and better VISA compliance.

  • Better error reporting and debug info.

0.1 (2015-02-12)

  • First public release.

  • Basic ASRL INSTR functionality.

  • Basic USB INSTR functionality.

  • Basic TCPIP INSTR functionality.

Metadata

Release files for PyVISA-sim 0.2

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-sim 0.2
File Size Uploaded Provenance Actions
PyVISA-sim-0.2.tar.gz 40.5 kB Without provenance Details for PyVISA-sim-0.2.tar.gz

Release files / PyVISA-sim-0.2.tar.gz

Download URL PyVISA-sim-0.2.tar.gz
Size 40.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bd47b6367ff0f02b273efe52d8762cd10674bd93cdc97f7133d0324bcf07c1bb
BLAKE2b-256 checksum
How to use checksums
37d073293f89c2567832e47e32bb30d6645e2d61aad1fa78266640838a707694
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyVISA-sim 0.2

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