Skip to main content

nsp2visasim

This package contains a simulation of an Arduino VISA device connected to a small circuit to measure the voltage versus current characteristics of a LED. It is created for a programming course in the physics and astronomy joint degree bachelor programme at the Vrije Universiteit and the University of Amsterdam. Students use the actual device and circuit while on campus. This package simulates this firmware.

Usage

In your controller code, replace:

import pyvisa

with:

try:
      from nsp2visasim import sim_pyvisa as pyvisa
except ModuleNotFoundError:
      import pyvisa

Then, if you use Poetry, add it to your existing project with:

poetry add --group dev nsp2visasim

If you don't use Poetry, install nsp2visasim with:

pip install nsp2visasim

You now appear to have an additional VISA device connected to your system. If an actual Arduino is attached, you can choose to open the simulation or the actual Arduino by selecting the correct port name. Your code should work exactly the same as before.

A session might look like this:

$ diode list                               
The following devices are connected to your computer:

ASRL/dev/cu.URT1::INSTR
ASRL/dev/cu.URT2::INSTR
ASRL/dev/cu.Bluetooth-Incoming-Port::INSTR
ASRL/dev/cu.usbmodem14501::INSTR
ASRL::SIMLED::INSTR

$ diode info SIMLED
Device identification: Simulated Arduino VISA firmware (LED experiment)

$ diode measure SIMLED -v 2.5 -n 10
Measured current through diode: 3.048 +- 0.030 mA @ 1.805 +- 0.011 V.

Metadata

Release files for nsp2visasim 1.4.1.post2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nsp2visasim 1.4.1.post2
File Size Uploaded Provenance
nsp2visasim-1.4.1.post2.tar.gz 509.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nsp2visasim 1.4.1.post2
File Interpreter ABI Platform
nsp2visasim-1.4.1.post2-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / nsp2visasim-1.4.1.post2.tar.gz

Download URL nsp2visasim-1.4.1.post2.tar.gz
Size 509.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b60c729fbee5103b1176a4e5444e28f4dae9da436b3340e8a4b64ca845ec3fad
BLAKE2b-256 checksum
How to use checksums
aa9d81225aa69bc453f6c76e5792c38185c943c08403a336f39d9f145ab27808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.13.1 Darwin/24.1.0

Release files / nsp2visasim-1.4.1.post2-py3-none-any.whl

Download URL nsp2visasim-1.4.1.post2-py3-none-any.whl
Size 508.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aeaa6f93d4303589e1f1a402d47cc2cacf2502f52243453e3726d0e6e142d858
BLAKE2b-256 checksum
How to use checksums
e6961f4df3b16e2f6268d6654a6518ae6e9197556a2d469bc61acdfeb1422286
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.13.1 Darwin/24.1.0

Security for nsp2visasim 1.4.1.post2

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.

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