STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_guis Directory Reference
Directory dependency graph for test_guis:

Directories

 
combined_gui

Files

 
actuator_testing_gui.py
 
ball_valve_gui.py
 
sense_testing_gui.py
 
solenoid_characterization_gui.py

Detailed Description

test_guis

GUI tools for DiabloAvionics sensor and actuator testing.

Sense Testing GUI (sense_testing_gui.py)

GUI that receives BOARD_HEARTBEAT and SENSOR_DATA UDP packets, plots sensor voltage, tracks board status (heartbeat rate, state, connection), and can send server heartbeat, sensor config, and abort packets to boards.

pip install -r requirements.txt
python sense_testing_gui.py

Options:

  • -p, --port — UDP listen port (default: 5006)
  • -r, --ref-voltage — ADC reference voltage in V (default: 2.5)

Ball Valve GUI (ball_valve_gui.py)

Opens and closes the Hotfire_Code/BallValve_Hotfire board's two motorized ball valves over Ethernet and shows each one's 4-20 mA position readback. Start heartbeats, wait for "Board: ACTIVE", then use each valve's OPEN/CLOSE. It sends SERVER_HEARTBEAT every 500 ms and ACTUATOR_COMMAND (actuator_id 1 or 2; 1 = open, 0 = closed) to UDP 5005, and reads the board's BOARD_HEARTBEAT and SENSOR_DATA from UDP 5006.

pip install -r requirements.txt
python ball_valve_gui.py # or: --ip 192.168.2.71

Give your computer an address on the board's subnet (e.g. 192.168.2.20/24). The board opens every valve 5 s after heartbeats stop (its safe state), so stopping them or closing the window opens them.

Combined GUI (combined_gui/)

Full sensor & actuator control GUI with PT calibration, state machine, and more.

pip install -r requirements.txt
python combined_gui/run.py

Or from the combined_gui directory:

cd combined_gui
python combined_gui.py

Firmware

  • Actuator board (ADC_Testing/Actuator_Testing): Listen on UDP 5005, send sensor data to PC on 5006
  • PT/sensor board: Send SENSOR_DATA to PC IP on port 5006 (or configure in Settings)