pymicrodxp
pymicrodxp is a Python-based RS-232 hardware driver and interactive command-line utility for the XIA microDXP Rev H and J hardware. It provides both a robust API for developers and a fully-featured interactive shell for hardware testing, diagnostics, and trace visualization.
Features
- Interactive Hardware Shell: A stateful command-line interface for rapid hardware debugging.
- Diagnostic Trace Capture: Easily capture, log, and visualize 8,000-point diagnostic traces (ADC, Filters, Baselines).
- Built-in Visualization: Interactive matplotlib plotting for hardware traces.
- Session Logging: All shell inputs and hardware outputs are automatically piped to an ISO 8601-timestamped log file with automatic log rotation.
- Cross-Platform: Works on Windows, macOS, and Linux. Includes a tkinter-based file picker for seamless data loading.
Prerequisites
- Python: 3.9 or newer.
- OS-Specific Hardware Permissions (Linux Only): By default, Linux distributions restrict access to
serial ports. To allow your user to communicate with the microDXP (e.g., via
/dev/ttyUSB0), you must add your user account to the dialout group. Refer to your distribution's documentation on using usermod to add a user to the dialout group. Note: You must log out and log back in (or restart your computer) for this permission change to take effect.
Installation
If you are using pymicrodxp to interface with the hardware and capture data, set up your environment as follows:
# Install core driver
pip install pymicrodxp
# Install with interactive shell and plotting
pip install pymicrodxp[shell]
This will install the library and automatically register the microdxp terminal command on your
system.
Interactive Shell
The easiest way to interact with the board is using the built-in shell. The shell keeps the serial port open between commands for extremely fast readouts.
Launch the shell and automatically connect:
microdxp -u serial://COM3 (Windows Serial)
microdxp -u serial:///dev/ttyUSB0 (Linux Serial)
Linux Users: If you receive a "Permission Denied" error when connecting to hardware:
- Add your user to the dialout group:
sudo usermod -a -G dialout $USER - Log out and log back in for changes to take effect.
Shell commands
Once inside the (microdxp) shell, you can type help to see a full list of commands, or use
<command> -h for specific details. The commands are broken down into the following
categories:
- Session & Connections:
connect <uri>,disconnect,view [filename],exit - Status:
temp,serial,status,info,par_names,reset_dsp,reset_fpga - Diagnostics:
test [--plot],trace [--plot],histogram [--plot],echo,transceive - Run Control:
start,stop,mca [--plot],stats,preset,snapshot - Spectrometer Control:
tau,threshold,mca_width,mca_bins,polarity,parset,genset,filter_param,dac,base_gain,swgain,gain_trim,blfilter_avg_length - Peripherals:
i2c <read|write> <address> <command_bytes> [-d DATA] [-r READ_LEN]
Metadata
Release files for pymicrodxp 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pymicrodxp-1.2.1.tar.gz | 62.8 kB | Without provenance | Details for pymicrodxp-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymicrodxp-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for pymicrodxp-1.2.1-py3-none-any.whl |
Total release size: 117.8 kB
Release files / pymicrodxp-1.2.1.tar.gz
| Download URL | pymicrodxp-1.2.1.tar.gz |
|---|---|
| Size | 62.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf4d70ad6e56f185da6f2435b63b09c9478a776ba5b233ddcd3aa8a8911f9f26
|
|
BLAKE2b-256 checksum How to use checksums |
8c34cde6ceca8ba621b284d2be286e476a2441767491723b0890ef7c12abf393
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / pymicrodxp-1.2.1-py3-none-any.whl
| Download URL | pymicrodxp-1.2.1-py3-none-any.whl |
|---|---|
| Size | 55.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a628f5c40f1095fd5de34403763c8be945dd712d9c8c2cb727a03514dc6120b
|
|
BLAKE2b-256 checksum How to use checksums |
34e9f7aa516582c731c5f692fa6ea05031346b880065350dfdbef00f2abf7a77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for pymicrodxp 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.