Relay Controller
16-channel relay controller GUI for NEnG RelayBank16 instruments.
Tools included
| Command | Description |
|---|---|
relay-controller-gui |
Tkinter GUI with 4x4 relay grid, bulk operations, SCPI console, dark/light theme |
Supports USB serial and WiFi/TCP connections with auto-detection.
This directory is a standalone, pip-installable Python package.
Install
Recommended: Install from PyPI
pip install neng-relay-controller
Development install from source (editable mode)
cd RelayBank16/Python/relay-controller
python3 -m venv .venv
source .venv/bin/activate # macOS / Linux
python -m pip install -U pip
python -m pip install -e .
Tkinter on macOS
The GUI requires Tkinter. On macOS it may be missing depending on how Python was installed:
brew install tcl-tk
brew install python-tk@3.xx # replace xx with your Python minor version
Run
relay-controller-gui
Features
- Visual Relay Grid — 4x4 grid of 16 relay buttons, click to toggle, right-click to pulse
- Real-time State Sync — Automatic polling keeps display synchronized with hardware
- Bulk Operations — All ON, All OFF, Invert, Hex Mask, Reset (*RST), Relay Test
- Pulse Configuration — Adjustable default pulse duration
- Connection Options — Auto/Force USB/WiFi with port scanning and WiFi discovery
- SCPI Console — Direct command entry with Up/Down history navigation
- Bitmask Display — Current relay state shown as hex and spaced binary
- Device Info — Model, serial number, firmware version, connection type
- Dark/Light Theme — Professional appearance with one-click theme toggle
- Safe Shutdown — Optional "Turn all relays OFF?" prompt on close
SCPI Commands (Quick Reference)
# Individual relay control
:RELA1:STAT ON # Turn relay 1 ON
:RELA1:STAT? # Query relay 1 state
:RELA5:PULS # Pulse relay 5
# Bulk control
:ROUT:MASK 0xFFFF # All relays ON
:ROUT:MASK 0x0000 # All relays OFF
:ROUT:MASK 0x00FF # Relays 1-8 ON
:ROUT:CLOS 1,3,5,7 # Close specific relays
:ROUT:OPEN 2,4 # Open specific relays
# System
*IDN? # Device identification
*RST # Reset (all OFF)
:ROUT:TEST # Sequential relay test
See SCPI_COMMAND_REFERENCE.md for the full command reference.
Notes
- Baud rate: 115 200 (USB CDC)
- TCP port: 5025 (standard SCPI-over-TCP)
- Only one client can use the serial port at a time
Release
See RELEASE_QUICK_START.md for release instructions.
(c) 2024-26 Prof. Flavio ABREU ARAUJO. All rights reserved.
Metadata
Release files for neng-relay-controller 0.1.3
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 |
|---|---|---|---|---|
| neng_relay_controller-0.1.3.tar.gz | 22.3 kB | Without provenance | Details for neng_relay_controller-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neng_relay_controller-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for neng_relay_controller-0.1.3-py3-none-any.whl |
Total release size: 45.9 kB
Release files / neng_relay_controller-0.1.3.tar.gz
| Download URL | neng_relay_controller-0.1.3.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccc86a232eb4629f2054a34d91f02a122b6829a81cd4927ddf2abe384db33359
|
|
BLAKE2b-256 checksum How to use checksums |
6ba6635286783fdd8599dc17319148ab5ce8c290b658ef6588700187c9b07643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / neng_relay_controller-0.1.3-py3-none-any.whl
| Download URL | neng_relay_controller-0.1.3-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfcb940d173cf750c409d62739aaac909b372a270f7edd494961a65b73cee4c6
|
|
BLAKE2b-256 checksum How to use checksums |
d674e07f327cea211555d595d17a843025798c86f3a38302be8a44806d931dfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for neng-relay-controller 0.1.3
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.