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
XDM1000class:set_mode()— selects measurement function (VDC, VAC, IDC, IAC, RES, CAP, FREQ)set_rate()— sets measurement speed (RATE F/M/S)measure()— single measurement usingMEAS?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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b5a4d0018deedea7eab69c3aba8e8d767cd91ba70d953820f5601914ab218ee
|
|
| MD5 |
b041b7188efbe701220da4ac5b4bb470
|
|
| BLAKE2b-256 |
b1b9f0400e37298966da8664399fe15626b5a70f41e3739a670a9c6114da0349
|
Provenance
The following attestation bundles were made for xdm1000-0.1.0.tar.gz:
Publisher:
pypi_publish.yml on quantumfish/owon-xdm1000
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xdm1000-0.1.0.tar.gz -
Subject digest:
1b5a4d0018deedea7eab69c3aba8e8d767cd91ba70d953820f5601914ab218ee - Sigstore transparency entry: 718481403
- Sigstore integration time:
-
Permalink:
quantumfish/owon-xdm1000@da3a8ac742a32bf50fed26acde3bae7e2e649760 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/quantumfish
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@da3a8ac742a32bf50fed26acde3bae7e2e649760 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb8c0367528b2cea508ce10cebfd4019b919d1f22a0797b571f743fe5e55c141
|
|
| MD5 |
89f47239dd426403707d71d189332446
|
|
| BLAKE2b-256 |
817514c41c37a6c1ae7f6c1d8036392c644e983ca294f6eab01d18afcdb0767e
|
Provenance
The following attestation bundles were made for xdm1000-0.1.0-py3-none-any.whl:
Publisher:
pypi_publish.yml on quantumfish/owon-xdm1000
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xdm1000-0.1.0-py3-none-any.whl -
Subject digest:
fb8c0367528b2cea508ce10cebfd4019b919d1f22a0797b571f743fe5e55c141 - Sigstore transparency entry: 718481406
- Sigstore integration time:
-
Permalink:
quantumfish/owon-xdm1000@da3a8ac742a32bf50fed26acde3bae7e2e649760 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/quantumfish
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@da3a8ac742a32bf50fed26acde3bae7e2e649760 -
Trigger Event:
workflow_dispatch
-
Statement type: