diff --git a/design_viewer.ui b/design_viewer.ui index 9777bcf..9a1ffde 100644 --- a/design_viewer.ui +++ b/design_viewer.ui @@ -301,7 +301,7 @@ - 140 + 160 700 111 16 @@ -445,7 +445,7 @@ - 140 + 160 670 111 16 @@ -496,7 +496,7 @@ - 140 + 160 640 111 16 @@ -1051,6 +1051,41 @@ Qt::AlignCenter + + + + 10 + 730 + 141 + 22 + + + + U max на конденсаторе, В + + + Qt::AlignCenter + + + + + + 160 + 730 + 111 + 16 + + + + QFrame::Box + + + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + diff --git a/project/view.py b/project/view.py index f4b7668..1c4045a 100644 --- a/project/view.py +++ b/project/view.py @@ -50,6 +50,7 @@ class Ui(QtWidgets.QMainWindow): self.start_time_charging = 0 # начало подчета времени зарядки конденсатора self.end_time_charging = 0 # конец подчета времени зарядки конденсатора self.charging_time = 0 # время зарядки конденсатора + self.U_cap_max = 0 # максимальное напряжение на конденсаторе # Создание графиков self.graph_init() @@ -293,7 +294,11 @@ class Ui(QtWidgets.QMainWindow): self.Vn_cnt_label.setText(str(data_in.Vn_cnt)) self.U_batt_label.setText(str(float(data_in.bat_volt / 1000))) self.U_batt_p_label.setText(str(data_in.bat_pers)) - self.U_cap_label.setText(str(float(data_in.hv_volt / 10))) + U_cap = float(data_in.hv_volt / 10) + self.U_cap_label.setText(str(U_cap)) + if U_cap > self.U_cap_max: + self.U_cap_max = U_cap + self.Umax_cap_label.setText(str(self.U_cap_max)) self.now_energy_label.setText(str(data_in.now_energy)) self.filt_period_label.setText(str(data_in.filt_period)) self.last_period_label.setText(str(data_in.last_period_stat)) diff --git a/viewer.exe b/viewer.exe index e90d3b0..01923f0 100644 Binary files a/viewer.exe and b/viewer.exe differ