STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
ball_valve_gui.BallValveGui Class Reference
Inheritance diagram for ball_valve_gui.BallValveGui:
[legend]
Collaboration diagram for ball_valve_gui.BallValveGui:
[legend]

Public Member Functions

 __init__ (self, str board_ip)
 open_socket (self)
bool send (self, bytes packet)
 poll_socket (self)
 on_board_heartbeat (self, bytes data, str src_ip)
 toggle_heartbeats (self)
 send_server_heartbeat (self)
 command (self, "ValvePanel" panel, int state)
bool board_active (self)
 refresh_status (self)
 set_command_label (self)
 update_controls (self)
 append (self, str text)
 closeEvent (self, event)

Public Attributes

socket.socket|None sock = None
bool heartbeats_on = False
float board_last_seen = 0.0
int board_state = 0
str|None board_src_ip = None
 ip_edit = QtWidgets.QLineEdit(board_ip)
 follow_ip = QtWidgets.QCheckBox("Follow board's IP")
 hb_btn = QtWidgets.QPushButton("Start heartbeats")
 toggle_heartbeats
 board_label = QtWidgets.QLabel()
list panels = [ValvePanel(self, aid, sid) for aid, sid in VALVES]
 log = QtWidgets.QPlainTextEdit()
 hb_timer = QtCore.QTimer(self)
 send_server_heartbeat
 rx_timer = QtCore.QTimer(self)
 poll_socket
 ui_timer = QtCore.QTimer(self)
 refresh_status

Detailed Description

Definition at line 188 of file ball_valve_gui.py.

Constructor & Destructor Documentation

◆ __init__()

ball_valve_gui.BallValveGui.__init__ ( self,
str board_ip )

Definition at line 189 of file ball_valve_gui.py.

References __init__().

Referenced by __init__().

Member Function Documentation

◆ append()

ball_valve_gui.BallValveGui.append ( self,
str text )

◆ board_active()

bool ball_valve_gui.BallValveGui.board_active ( self)

◆ closeEvent()

ball_valve_gui.BallValveGui.closeEvent ( self,
event )

◆ command()

ball_valve_gui.BallValveGui.command ( self,
"ValvePanel" panel,
int state )

◆ on_board_heartbeat()

◆ open_socket()

ball_valve_gui.BallValveGui.open_socket ( self)

◆ poll_socket()

◆ refresh_status()

ball_valve_gui.BallValveGui.refresh_status ( self)

◆ send()

◆ send_server_heartbeat()

ball_valve_gui.BallValveGui.send_server_heartbeat ( self)

◆ set_command_label()

ball_valve_gui.BallValveGui.set_command_label ( self)

Definition at line 397 of file ball_valve_gui.py.

References heartbeats_on, and panels.

Referenced by toggle_heartbeats().

◆ toggle_heartbeats()

◆ update_controls()

ball_valve_gui.BallValveGui.update_controls ( self)

Definition at line 401 of file ball_valve_gui.py.

References hb_btn, heartbeats_on, and panels.

Referenced by toggle_heartbeats().

Member Data Documentation

◆ board_label

ball_valve_gui.BallValveGui.board_label = QtWidgets.QLabel()

Definition at line 216 of file ball_valve_gui.py.

Referenced by refresh_status().

◆ board_last_seen

float ball_valve_gui.BallValveGui.board_last_seen = 0.0

Definition at line 194 of file ball_valve_gui.py.

Referenced by board_active(), on_board_heartbeat(), and refresh_status().

◆ board_src_ip

str | None ball_valve_gui.BallValveGui.board_src_ip = None

Definition at line 196 of file ball_valve_gui.py.

Referenced by on_board_heartbeat(), and poll_socket().

◆ board_state

◆ follow_ip

ball_valve_gui.BallValveGui.follow_ip = QtWidgets.QCheckBox("Follow board's IP")

Definition at line 200 of file ball_valve_gui.py.

Referenced by on_board_heartbeat().

◆ hb_btn

ball_valve_gui.BallValveGui.hb_btn = QtWidgets.QPushButton("Start heartbeats")

Definition at line 206 of file ball_valve_gui.py.

Referenced by update_controls().

◆ hb_timer

ball_valve_gui.BallValveGui.hb_timer = QtCore.QTimer(self)

Definition at line 244 of file ball_valve_gui.py.

Referenced by toggle_heartbeats().

◆ heartbeats_on

ball_valve_gui.BallValveGui.heartbeats_on = False

Definition at line 193 of file ball_valve_gui.py.

Referenced by command(), set_command_label(), toggle_heartbeats(), and update_controls().

◆ ip_edit

ball_valve_gui.BallValveGui.ip_edit = QtWidgets.QLineEdit(board_ip)

Definition at line 199 of file ball_valve_gui.py.

Referenced by on_board_heartbeat(), and send().

◆ log

ball_valve_gui.BallValveGui.log = QtWidgets.QPlainTextEdit()

Definition at line 229 of file ball_valve_gui.py.

Referenced by append().

◆ panels

list ball_valve_gui.BallValveGui.panels = [ValvePanel(self, aid, sid) for aid, sid in VALVES]

◆ poll_socket

ball_valve_gui.BallValveGui.poll_socket

Definition at line 247 of file ball_valve_gui.py.

◆ refresh_status

ball_valve_gui.BallValveGui.refresh_status

Definition at line 249 of file ball_valve_gui.py.

◆ rx_timer

ball_valve_gui.BallValveGui.rx_timer = QtCore.QTimer(self)

Definition at line 246 of file ball_valve_gui.py.

Referenced by open_socket().

◆ send_server_heartbeat

ball_valve_gui.BallValveGui.send_server_heartbeat

Definition at line 245 of file ball_valve_gui.py.

Referenced by command(), and toggle_heartbeats().

◆ sock

◆ toggle_heartbeats

ball_valve_gui.BallValveGui.toggle_heartbeats

Definition at line 207 of file ball_valve_gui.py.

◆ ui_timer

ball_valve_gui.BallValveGui.ui_timer = QtCore.QTimer(self)

Definition at line 248 of file ball_valve_gui.py.


The documentation for this class was generated from the following file: