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.0.tar.gz (21.3 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.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rigol1000z_tools-0.3.0.tar.gz
  • Upload date:
  • Size: 21.3 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.0.tar.gz
Algorithm Hash digest
SHA256 9b7851486cb74cff2386181af9bda44cfc3652ffc3e753f94146403b364764b9
MD5 74146a0c7e4c8aa4e291c099f9febf6f
BLAKE2b-256 9a924fd8e82a0c816ae64cd399ba2cbf39fbba88aa4bd5348eed318446cef49b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rigol1000z_tools-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1443bbd93da76d4b4ed12a34b8a9b9b8c21dbb6e61cb5eab9a95127a75fdf75
MD5 fc52e37f22f069009673ef08dbb95a12
BLAKE2b-256 9e7a7a5cae291cf467f582b8902296c79a0ffa1586773b7353829b9affa417ed

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