Control and monitoring utilities for the Phantom HV supply developed for SWGO at MPIK.
Project description
Phantom HV Control & Monitoring Software
This repository contains software to control and monitor a Phantom HV crate via Ethernet. The Phantom HV hardware is a modular 3-RU system that combines high-voltage supplies and high-frequency pulse pick-off circuits to operate photomultiplier tubes (PMTs). It has been designed for the SWGO and lab applications.
Software installation
You can find the newest packaged release of this library on PyPi. Untagged versions are released on TestPyPi as well.
Install via pip install phantom-hv
.
Upgrade to the newest release with pip install -U phantom-hv
.
Requirements
- Python 3 for the core library and command-line interface
- nicegui, pywebview, plotly and numpy for the Web UI (install via conda/mamba or pip)
Tools
If installed via pip this library provides two tools:
phantomhv-ctl
is a command-line interface to control and monitor a Phantom HV modulephantomhv-webui
provides a web interface with realtime plotting
phantomhv-ctl
command-line tool
usage: phantomhv-ctl [-h] {boot,reset,flash,unlock-hv,lock-hv,enable-hv,disable-hv,set,monitor} ...
Low-level control and monitoring command-line tool for Phantom HV modules.
positional arguments:
{boot,reset,flash,unlock-hv,lock-hv,enable-hv,disable-hv,set,monitor}
boot boot application slot
reset reset into bootloader
flash flash binary firmware image into application slot
unlock-hv enable HV
lock-hv disable HV
enable-hv enable HV channel
disable-hv disable HV channel
set set hardware registers
monitor continuously read and print slave states
options:
-h, --help show this help message and exit
phantomhv-webui
web interface
usage: phantomhv-webui [-h] [--address ip:port] [--num-slots {1,2,3,4,5,6,7,8}] [--show | --bind hostname:port]
Web UI to monitor and control a Phantom HV crate.
options:
-h, --help show this help message and exit
--address ip:port IP address or hostname of the device (default: 192.168.1.115:512)
--num-slots {1,2,3,4,5,6,7,8}
number of modules to display (default: 1)
--show open UI in native window
--bind hostname:port bind web server to a specific network interface/port (default: 127.0.0.1:8080; use 0.0.0.0 to bind to all interfaces)
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
Built Distribution
File details
Details for the file phantom_hv-0.1.1.tar.gz
.
File metadata
- Download URL: phantom_hv-0.1.1.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a29b6ce44268b2cc2e71f8a074e7566324983d56746f2d5c039d8e3563c7e421 |
|
MD5 | 2b08475bb0491d45f0caf2845ebb4607 |
|
BLAKE2b-256 | 38e7b2fa3bad2375f80438b31d4974774c66b1bd3fc1dc7ac5cae1f3368b2160 |
File details
Details for the file phantom_hv-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: phantom_hv-0.1.1-py3-none-any.whl
- Upload date:
- Size: 116.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da736b017bac28a35d1e36cfc43868f23b0ed3981854b1b4a01a807c5a3b9ee |
|
MD5 | 30e71eb31f3b138b1c8f25106627a079 |
|
BLAKE2b-256 | fa8da68d8dace3dfff0daae29753a94533b2b3bdf68223037e76926458cfd5ed |