Skip to main content

Enhanced Rigol DS1000Z VISA driver with safe screenshot capture and label overlays.

Project description

rigol1000z-tools

rigol1000z-tools is a repackaged and extended Rigol DS1000Z Python driver.

It is based on the original rigol1000z package, with additional helpers for:

  • bounded, safer screenshot capture
  • PNG repair fallback for malformed screenshot payloads
  • labeled screenshot generation using Pillow

Install

From a local checkout:

pip install .

With image labeling support:

pip install .[images]

After publishing to an index such as PyPI or GitHub Packages:

pip install rigol1000z-tools

Usage

import pyvisa as visa
from rigol1000z_tools import Rigol1000z

rm = visa.ResourceManager()
osc_resource = rm.open_resource(rm.list_resources()[0])

osc = Rigol1000z(osc_resource)
osc.get_screenshot_safe("scope.png")
osc.get_labeled_screenshot(
    "scope.png",
    {1: "CH1: VIN", 2: "CH2: VOUT"},
    labeled_filename="scope_labeled.png",
)

Build

python -m build

Build artifacts will be written to dist/.

Publish

Typical PyPI flow:

python -m pip install build twine
python -m build
python -m twine upload dist/*

If you prefer installation directly from GitHub, users can run:

pip install git+https://github.com/M-Y-chen/Library.git#subdirectory=packages/instrumentation/rigol1000z_tools_package

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

rigol1000z_tools-0.3.1.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rigol1000z_tools-0.3.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file rigol1000z_tools-0.3.1.tar.gz.

File metadata

  • Download URL: rigol1000z_tools-0.3.1.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for rigol1000z_tools-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e81552faf3a187f23deb5dd4c7e6667079ba5d3dc5ac66aa64406d9863827d88
MD5 33bbbc94ea8ea02c1a56f22abef66f68
BLAKE2b-256 7652d8e51e05857e5a075e6fdfcd20bbb164b21fe1100db692ff5f4fcf7a71c0

See more details on using hashes here.

File details

Details for the file rigol1000z_tools-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rigol1000z_tools-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e54863cf58ef3c3b2b2c26d69360924922493554c928115bb44baf1bc4ef93f5
MD5 ed0a7fcc39ac246ce0e2cee92de0c80d
BLAKE2b-256 b0eb42c8cfed15f2f93aa6bba49bbd6f9dc6ec307b9e2cdf55468d158c93aa4b

See more details on using hashes here.

Supported by

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