Skip to content

Repository files navigation

NHQ Power Supply Control

Control an ISEG NHQ high-voltage supply over RS232.

Requirements

  • Python 3.10+
  • pyserial

Install dependency:

pip install pyserial

Launch Modes

GUI mode

Run the graphical interface:

python3 main.py --gui

You can also launch it directly:

python3 gui.py

CLI mode

Run commands from terminal:

python3 main.py --port /dev/ttyUSB0 --channel 1 id

Skip startup init report (useful for scripts):

python3 main.py --skip-init-check --port /dev/ttyUSB0 --channel 1 id

Example set-and-start:

python3 main.py --port /dev/ttyUSB0 --channel 1 set-and-start 100 --ramp 10

Interactive CLI shell:

python3 main.py --port /dev/ttyUSB0 --channel 1 interactive

Inside interactive mode, type help to list commands and exit to quit.

Notes

  • If --port is omitted, a default is auto-selected by OS.
  • Use a 1:1 serial cable (no null modem).

About

Simple script to start/stop NHQ power supplies via serial, setting ramp and so on. With gui

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages