Skip to main content

Simple Python driver for OWON XDM1000 / XDM1xxx multimeters over serial (SCPI).

Project description

xdm1000

Simple Python driver for OWON XDM1000 / XDM1xxx multimeters over serial (SCPI).

Features

  • Auto-discovery of the first available OWON XDM1xxx using *IDN?
  • High-level XDM1000 class:
    • set_mode() — selects measurement function (VDC, VAC, IDC, IAC, RES, CAP, FREQ)
    • set_rate() — sets measurement speed (RATE F/M/S)
    • measure() — single measurement using MEAS? in the current mode
  • Works with:
    • XDM1000 (firmware V4.3.0,3 tested)
    • Other XDM1xxx models should also be compatible (e.g. XDM1241)

Installation

pip install xdm1000

(Or clone this repo and install in editable mode:)

git clone https://github.com/yourname/xdm1000.git
cd xdm1000
pip install -e .

## Usage

from xdm1000 import XDM1000, MeasurementMode, MeasurementSpeed
import time

# Auto-discover first XDM1xxx
with XDM1000() as meter:
    print("Connected to:", meter.idn)

    # Set DC voltage mode and FAST rate
    meter.set_mode(MeasurementMode.VDC)
    meter.set_rate(MeasurementSpeed.FAST)

    for i in range(5):
        value = meter.measure()
        print(f"V = {value}")
        time.sleep(1.0)

You can also select a specific instrument by serial suffix:

with XDM1000(serial_suffix="1543") as meter:
    ...

This matches any device whose serial number (3rd field in *IDN?) contains "1543".

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

xdm1000-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

xdm1000-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file xdm1000-0.1.0.tar.gz.

File metadata

  • Download URL: xdm1000-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xdm1000-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b5a4d0018deedea7eab69c3aba8e8d767cd91ba70d953820f5601914ab218ee
MD5 b041b7188efbe701220da4ac5b4bb470
BLAKE2b-256 b1b9f0400e37298966da8664399fe15626b5a70f41e3739a670a9c6114da0349

See more details on using hashes here.

Provenance

The following attestation bundles were made for xdm1000-0.1.0.tar.gz:

Publisher: pypi_publish.yml on quantumfish/owon-xdm1000

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xdm1000-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xdm1000-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xdm1000-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb8c0367528b2cea508ce10cebfd4019b919d1f22a0797b571f743fe5e55c141
MD5 89f47239dd426403707d71d189332446
BLAKE2b-256 817514c41c37a6c1ae7f6c1d8036392c644e983ca294f6eab01d18afcdb0767e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xdm1000-0.1.0-py3-none-any.whl:

Publisher: pypi_publish.yml on quantumfish/owon-xdm1000

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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