Real time data
Class documentation
Bases: QWidget
A class representing a widget for displaying real-time data.
Attributes:
| Name | Type | Description |
|---|---|---|
named_widget |
QWidget
|
The widget containing real-time data. |
position_label_a |
QLabel
|
Label for position data of axis A. |
position_label_e |
QLabel
|
Label for position data of axis E. |
speed_label_a |
QLabel
|
Label for speed data of axis A. |
speed_label_e |
QLabel
|
Label for speed data of axis E. |
mode_label |
QLabel
|
Label for displaying current mode. |
Source code in GUI.py
__init__()
Initialize the RealTimeData widget.
Source code in GUI.py
update_mode(mode)
Update the mode label with the provided mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode |
str
|
The mode to be displayed. |
required |
update_variables(M, pos)
Update the displayed variables based on the provided data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
M |
dict
|
Dictionary containing speed data for axes A and E. |
required |
pos |
dict
|
Dictionary containing position data for axes A and E, and active sense data for axes F and Q. |
required |