Diagnose
Class documentation
Bases: QWidget
A class representing a widget for diagnostic motor parameters.
Attributes:
| Name | Type | Description |
|---|---|---|
graphWidget_E |
PlotWidget
|
Widget for displaying primary motor speed graph. |
graphWidget_A |
PlotWidget
|
Widget for displaying secondary motor speed graph. |
data_line_E |
PlotDataItem
|
Data line for primary motor speed graph. |
data_line_A |
PlotDataItem
|
Data line for secondary motor speed graph. |
M_E |
list
|
List to store primary motor speed data. |
M_A |
list
|
List to store secondary motor speed data. |
Source code in GUI.py
__init__()
Initialize the Diagnose widget.
Source code in GUI.py
update_diagnose_plot(t, M)
Update the motor speed graphs with new data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t |
list
|
List of time values. |
required |
M |
dict
|
Dictionary containing motor speed data for axes A and E. |
required |