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

Public Member Functions

 __init__ (self, int port=DEFAULT_PORT, str bind_address="0.0.0.0")
str pt_label (self, int sensor_id)
 init_ui (self)
 start_receiver (self)
 on_sensor_data (self, dict header, List[dict] chunks)
 update_plots (self)
 update_statistics (self)
 save_csv (self)
 show_settings (self)
 closeEvent (self, e)

Public Attributes

 port = port
 bind_address = bind_address
 window_seconds = DEFAULT_WINDOW_SECONDS
dict sensor_data = {}
dict sensor_plots = {}
dict plot_enabled = {i: True for i in range(NUM_PTS)}
 stats_start_time = time.time()
 receiver = None
 update_timer = QtCore.QTimer()
 update_plots
 stats_timer = QtCore.QTimer()
 update_statistics
 status_label = QtWidgets.QLabel("Starting...")
 show_settings
 save_csv
 plot_widget = pg.GraphicsLayoutWidget()
 packets_label = QtWidgets.QLabel("Packets: 0")
 pps_label = QtWidgets.QLabel("Packets/sec: 0.0")
 bytes_label = QtWidgets.QLabel("Bytes: 0")
 bps_label = QtWidgets.QLabel("Bytes/sec: 0.0")
dict pt_toggles = {}
dict pt_voltage_labels = {}
 plot_item = self.plot_widget.addPlot(title="PT Voltages")
 legend = self.plot_item.legend
 on_sensor_data

Protected Member Functions

 _on_plot_toggle (self, int idx, state)

Detailed Description

Definition at line 268 of file pt_multi_gui.py.

Constructor & Destructor Documentation

◆ __init__()

pt_multi_gui.PTPlotWindow.__init__ ( self,
int port = DEFAULT_PORT,
str bind_address = "0.0.0.0" )

Definition at line 269 of file pt_multi_gui.py.

References __init__().

Referenced by __init__().

Member Function Documentation

◆ _on_plot_toggle()

pt_multi_gui.PTPlotWindow._on_plot_toggle ( self,
int idx,
state )
protected

Definition at line 387 of file pt_multi_gui.py.

References plot_enabled.

◆ closeEvent()

pt_multi_gui.PTPlotWindow.closeEvent ( self,
e )

◆ init_ui()

pt_multi_gui.PTPlotWindow.init_ui ( self)

Definition at line 291 of file pt_multi_gui.py.

◆ on_sensor_data()

pt_multi_gui.PTPlotWindow.on_sensor_data ( self,
dict header,
List[dict] chunks )

◆ pt_label()

str pt_multi_gui.PTPlotWindow.pt_label ( self,
int sensor_id )

Definition at line 288 of file pt_multi_gui.py.

◆ save_csv()

pt_multi_gui.PTPlotWindow.save_csv ( self)
Save all PT timestamp and voltage data to a CSV file.

Definition at line 448 of file pt_multi_gui.py.

References sensor_data, lc_calibration_gui.LCPlotWindow.status_label, and status_label.

◆ show_settings()

pt_multi_gui.PTPlotWindow.show_settings ( self)

◆ start_receiver()

◆ update_plots()

◆ update_statistics()

Member Data Documentation

◆ bind_address

◆ bps_label

pt_multi_gui.PTPlotWindow.bps_label = QtWidgets.QLabel("Bytes/sec: 0.0")

Definition at line 318 of file pt_multi_gui.py.

Referenced by update_statistics().

◆ bytes_label

pt_multi_gui.PTPlotWindow.bytes_label = QtWidgets.QLabel("Bytes: 0")

Definition at line 317 of file pt_multi_gui.py.

Referenced by update_statistics().

◆ legend

pt_multi_gui.PTPlotWindow.legend = self.plot_item.legend

Definition at line 369 of file pt_multi_gui.py.

Referenced by combined_gui.SensorPlotWidget.add_sensor_plot().

◆ on_sensor_data

pt_multi_gui.PTPlotWindow.on_sensor_data

Definition at line 392 of file pt_multi_gui.py.

◆ packets_label

pt_multi_gui.PTPlotWindow.packets_label = QtWidgets.QLabel("Packets: 0")

Definition at line 315 of file pt_multi_gui.py.

Referenced by update_statistics().

◆ plot_enabled

◆ plot_item

◆ plot_widget

◆ port

◆ pps_label

pt_multi_gui.PTPlotWindow.pps_label = QtWidgets.QLabel("Packets/sec: 0.0")

Definition at line 316 of file pt_multi_gui.py.

Referenced by update_statistics().

◆ pt_toggles

dict pt_multi_gui.PTPlotWindow.pt_toggles = {}

Definition at line 332 of file pt_multi_gui.py.

◆ pt_voltage_labels

dict pt_multi_gui.PTPlotWindow.pt_voltage_labels = {}

Definition at line 333 of file pt_multi_gui.py.

Referenced by update_plots().

◆ receiver

◆ save_csv

pt_multi_gui.PTPlotWindow.save_csv

Definition at line 306 of file pt_multi_gui.py.

◆ sensor_data

◆ sensor_plots

◆ show_settings

pt_multi_gui.PTPlotWindow.show_settings

Definition at line 303 of file pt_multi_gui.py.

◆ stats_start_time

◆ stats_timer

pt_multi_gui.PTPlotWindow.stats_timer = QtCore.QTimer()

Definition at line 284 of file pt_multi_gui.py.

◆ status_label

◆ update_plots

◆ update_statistics

pt_multi_gui.PTPlotWindow.update_statistics

◆ update_timer

pt_multi_gui.PTPlotWindow.update_timer = QtCore.QTimer()

◆ window_seconds


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