phantomhv package¶
Module contents¶
Control and monitoring tools for the Phantom HV supply developed for SWGO at MPIK.
Use the command-line tools phantomhv-ctl or phantomhv-webui, or the I/O classes PhantomHVIO or PhantomHVStateBuffer to communicate with the hardware.
- class phantomhv.PhantomHVIO[source]¶
Bases:
IOStack- __init__(ip, port=512, timeout=0.3, max_retries=3, verbosity=0, max_packet_size=300, interface_ip=None)[source]¶
Connects to the SPI I/O subsystem at the given address.
- Parameters:
ip (string) – Destination address.
port (int, optional) – Destination port (default: 512).
timeout (float, optional) – Response timeout in seconds (default: 200 ms).
verbosity (int, optional) – Verbosity level (default: 0, silent)
max_packet_size (int, optional) – Expected maximum size of replies (default: 256 Bytes).
interface_ip (str, optional) – IP address of local interface (default: let OS choose).