Skip to main content

New asyncio version. Only for Python 3.6 and above

Since all the other wrappers either require VISA binary or are not generic (and do not implement the device I need)

Basic idea here is to make transport-independent command sender/parser and a device baseclass that implements the common SCPI commands

A device specific implementation can then add the device-specific commands.

Pro tip for thos wishing to work on the code https://python-poetry.org/

## Usage

Install the package to your virtualenv with poetry or from pip

  • Instatiate a transport (for GPIB you will need GPIBDeviceTransport to be able to use the device helper class)

  • Instatiate SCPIProtocol with the transport (optional, see below)

  • Instantiate SCPIDevice with the protocol (or as a shorthand: with the transport directly)

  • Use the asyncio eventloop to run the device methods (all of which are coroutines)

Or if you’re just playing around in the REPL use AIOWrapper to hide the eventloop handling for traditional non-concurrent approach.

See the examples directory for more.

TODO

Check Carrier-Detect for RS232 transport

in the RS232 transport check getCD to make sure the device is present before doing anything. CTS can also be checked even if hw flow control is not in use.

Basically wait for it for X seconds and abort if not found

Release files for scpi 2.5.1

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

Source distribution (sdist)

Source distribution for scpi 2.5.1
File Size Uploaded
scpi-2.5.1.tar.gz 16.9 kB Details

Built distribution (wheel)

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

Total release size: 39.1 kB

Release files / scpi-2.5.1.tar.gz

Download URL scpi-2.5.1.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d8df239f7adb475cc01e7da508a1b85a94310a9c0a887972d48a4851d7f45dbc
BLAKE2b-256 checksum
How to use checksums
e374f257c33c3f1e130deb6ee3731cd0cbba23dd71159ba2234d24109491179f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.13

Release files / scpi-2.5.1-py3-none-any.whl

Download URL scpi-2.5.1-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d6f5a1ff1a906ccf9015605fd1c0711387b2dd5083c2e176ba5c85c88c7b23d
BLAKE2b-256 checksum
How to use checksums
8abe996b784364963c011d1891f47697964be667b14a10340cf068e1d5968023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.13

Release history Release notifications | RSS feed

This release

2.5.1 This release

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.0

1 release file

0.5

1 release file

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