Add U max cap
This commit is contained in:
parent
8e2324503d
commit
768b85d499
@ -301,7 +301,7 @@
|
||||
<widget class="QLabel" name="U_cap_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<x>160</x>
|
||||
<y>700</y>
|
||||
<width>111</width>
|
||||
<height>16</height>
|
||||
@ -445,7 +445,7 @@
|
||||
<widget class="QLabel" name="U_batt_p_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<x>160</x>
|
||||
<y>670</y>
|
||||
<width>111</width>
|
||||
<height>16</height>
|
||||
@ -496,7 +496,7 @@
|
||||
<widget class="QLabel" name="U_batt_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<x>160</x>
|
||||
<y>640</y>
|
||||
<width>111</width>
|
||||
<height>16</height>
|
||||
@ -1051,6 +1051,41 @@
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="Umax_cap_l">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>730</y>
|
||||
<width>141</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>U max на конденсаторе, В</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="Umax_cap_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>160</x>
|
||||
<y>730</y>
|
||||
<width>111</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="PlotWidget" name="graph_1">
|
||||
<property name="geometry">
|
||||
|
||||
@ -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))
|
||||
|
||||
BIN
viewer.exe
BIN
viewer.exe
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user