Change settings of burst mode
This commit is contained in:
parent
4af922f1de
commit
c939840d46
@ -277,7 +277,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>3</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="visual">
|
<widget class="QWidget" name="visual">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@ -1271,7 +1271,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>160</y>
|
<y>220</y>
|
||||||
<width>211</width>
|
<width>211</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1294,7 +1294,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>9</x>
|
<x>9</x>
|
||||||
<y>220</y>
|
<y>280</y>
|
||||||
<width>221</width>
|
<width>221</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1313,7 +1313,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>279</y>
|
<y>339</y>
|
||||||
<width>241</width>
|
<width>241</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1332,7 +1332,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>308</y>
|
<y>368</y>
|
||||||
<width>221</width>
|
<width>221</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1351,7 +1351,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>270</x>
|
<x>270</x>
|
||||||
<y>220</y>
|
<y>280</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1417,7 +1417,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>249</y>
|
<y>309</y>
|
||||||
<width>221</width>
|
<width>221</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1436,7 +1436,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>270</x>
|
<x>270</x>
|
||||||
<y>250</y>
|
<y>310</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1497,7 +1497,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>270</x>
|
<x>270</x>
|
||||||
<y>280</y>
|
<y>340</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1538,7 +1538,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>270</x>
|
<x>270</x>
|
||||||
<y>310</y>
|
<y>370</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1574,7 +1574,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>9</x>
|
<x>9</x>
|
||||||
<y>191</y>
|
<y>251</y>
|
||||||
<width>221</width>
|
<width>221</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1602,7 +1602,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>270</x>
|
<x>270</x>
|
||||||
<y>190</y>
|
<y>250</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1658,7 +1658,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>270</x>
|
<x>270</x>
|
||||||
<y>340</y>
|
<y>400</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1673,8 +1673,23 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>3</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>200</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>300</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>400</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>500</string>
|
<string>500</string>
|
||||||
@ -1715,7 +1730,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>337</y>
|
<y>397</y>
|
||||||
<width>261</width>
|
<width>261</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1734,7 +1749,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>270</x>
|
<x>270</x>
|
||||||
<y>370</y>
|
<y>430</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1753,7 +1768,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>370</y>
|
<y>430</y>
|
||||||
<width>251</width>
|
<width>251</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1945,6 +1960,84 @@
|
|||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QLabel" name="HV_label">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>20</x>
|
||||||
|
<y>140</y>
|
||||||
|
<width>171</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Высоковольтная стимуляция</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLabel" name="LV_label">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>20</x>
|
||||||
|
<y>170</y>
|
||||||
|
<width>171</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Низковольтная стимуляция</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QComboBox" name="HV_Box">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>190</x>
|
||||||
|
<y>140</y>
|
||||||
|
<width>91</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="currentText">
|
||||||
|
<string>неактивна</string>
|
||||||
|
</property>
|
||||||
|
<property name="currentIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>неактивна</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>активна</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
<widget class="QComboBox" name="LV_Box">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>190</x>
|
||||||
|
<y>170</y>
|
||||||
|
<width>91</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="currentText">
|
||||||
|
<string>неактивна</string>
|
||||||
|
</property>
|
||||||
|
<property name="currentIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>неактивна</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>активна</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
@ -3123,6 +3216,11 @@
|
|||||||
<string>None</string>
|
<string>None</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>BURST</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>VOO</string>
|
<string>VOO</string>
|
||||||
@ -3133,11 +3231,6 @@
|
|||||||
<string>VVI</string>
|
<string>VVI</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>BURST</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="lv_mode">
|
<widget class="QLabel" name="lv_mode">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
|
|||||||
@ -4,5 +4,5 @@
|
|||||||
DATA_RATE = 200 # скорость передачи данных
|
DATA_RATE = 200 # скорость передачи данных
|
||||||
|
|
||||||
# mes = "AT+CONA11899AA1670B\r\n"
|
# mes = "AT+CONA11899AA1670B\r\n"
|
||||||
mes = "AT+CONA11899AA21438\r\n" # для связи со стимулятором
|
# mes = "AT+CONA11899AA21438\r\n" # для связи со стимулятором
|
||||||
|
mes = "AT+CONA11899AA166E1\r\n" # для связи со стимулятором
|
||||||
|
|||||||
@ -173,6 +173,8 @@ class DataClass:
|
|||||||
self.dc_cut = 1 # вывод сигнала с постоянной составляющей или без
|
self.dc_cut = 1 # вывод сигнала с постоянной составляющей или без
|
||||||
self.channel = 3 # активный канал передачи
|
self.channel = 3 # активный канал передачи
|
||||||
self.signal = 0 # вывод сигнала с фильтром или без
|
self.signal = 0 # вывод сигнала с фильтром или без
|
||||||
|
self.hv = 0 # активация режима высоковльтной стимуляции
|
||||||
|
self.lv = 0 # активация режима низковольтной стимуляции
|
||||||
self.sd_card = 0 # запись на sd-карту
|
self.sd_card = 0 # запись на sd-карту
|
||||||
self.hv_volt = 0 # напряжение на конденсаторе
|
self.hv_volt = 0 # напряжение на конденсаторе
|
||||||
self.bat_volt = 0 # напряжение на батарее
|
self.bat_volt = 0 # напряжение на батарее
|
||||||
@ -357,6 +359,8 @@ class DataClass:
|
|||||||
self.rr_now[self.draw_cnt] = (int1 & 0x4) >> 2
|
self.rr_now[self.draw_cnt] = (int1 & 0x4) >> 2
|
||||||
self.Work_Mode_pacemaker = (int1 & 0x60) >> 5
|
self.Work_Mode_pacemaker = (int1 & 0x60) >> 5
|
||||||
self.signal = (int1 & 0x80) >> 7
|
self.signal = (int1 & 0x80) >> 7
|
||||||
|
self.lv = (int1 & 0x10) >> 4
|
||||||
|
self.hv = (int1 & 0x8) >> 3
|
||||||
|
|
||||||
def parse_part_from_23_to_30_byte(self):
|
def parse_part_from_23_to_30_byte(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -93,12 +93,14 @@ class Ui(QtWidgets.QMainWindow):
|
|||||||
self.Signal_Box.currentIndexChanged.connect(self.set_Signal_Box)
|
self.Signal_Box.currentIndexChanged.connect(self.set_Signal_Box)
|
||||||
self.Channel_Box.currentIndexChanged.connect(self.set_Channel_Box)
|
self.Channel_Box.currentIndexChanged.connect(self.set_Channel_Box)
|
||||||
self.DC_cut_Box.currentIndexChanged.connect(self.set_DC_cut_Box)
|
self.DC_cut_Box.currentIndexChanged.connect(self.set_DC_cut_Box)
|
||||||
|
self.HV_Box.currentIndexChanged.connect(self.set_HV_Box)
|
||||||
|
self.LV_Box.currentIndexChanged.connect(self.set_LV_Box)
|
||||||
|
# fixed
|
||||||
self.High_Tf_spinBox.valueChanged.connect(self.set_High_Tf_spinBox)
|
self.High_Tf_spinBox.valueChanged.connect(self.set_High_Tf_spinBox)
|
||||||
self.High_Tt2_spinBox.valueChanged.connect(self.set_High_Tt2_spinBox)
|
self.High_Tt2_spinBox.valueChanged.connect(self.set_High_Tt2_spinBox)
|
||||||
self.High_Tt1_spinBox.valueChanged.connect(self.set_High_Tt1_spinBox)
|
self.High_Tt1_spinBox.valueChanged.connect(self.set_High_Tt1_spinBox)
|
||||||
self.f_count_spinBox.valueChanged.connect(self.set_f_count_spinBox)
|
self.f_count_spinBox.valueChanged.connect(self.set_f_count_spinBox)
|
||||||
|
#
|
||||||
self.Work_Mode_pacemaker.editTextChanged.connect(self.set_Work_Mode_pacemaker)
|
self.Work_Mode_pacemaker.editTextChanged.connect(self.set_Work_Mode_pacemaker)
|
||||||
self.hv_step_number_spinBox.valueChanged.connect(self.set_hv_step_number_spinBox)
|
self.hv_step_number_spinBox.valueChanged.connect(self.set_hv_step_number_spinBox)
|
||||||
self.min_energy_spinBox.valueChanged.connect(self.set_min_energy_spinBox)
|
self.min_energy_spinBox.valueChanged.connect(self.set_min_energy_spinBox)
|
||||||
@ -186,6 +188,8 @@ class Ui(QtWidgets.QMainWindow):
|
|||||||
self.Signal_Box.setCurrentIndex(int(data_in.signal))
|
self.Signal_Box.setCurrentIndex(int(data_in.signal))
|
||||||
self.Channel_Box.setCurrentIndex(int(data_in.channel))
|
self.Channel_Box.setCurrentIndex(int(data_in.channel))
|
||||||
self.DC_cut_Box.setCurrentIndex(int(data_in.dc_cut))
|
self.DC_cut_Box.setCurrentIndex(int(data_in.dc_cut))
|
||||||
|
self.HV_Box.setCurrentIndex(int(data_in.hv))
|
||||||
|
self.LV_Box.setCurrentIndex(int(data_in.lv))
|
||||||
self.RA_max_time_ms_BOX.setEditText(str(data_in.max_search_time))
|
self.RA_max_time_ms_BOX.setEditText(str(data_in.max_search_time))
|
||||||
self.RA_min_sensitivity_BOX.setEditText(str(data_in.min_treshold))
|
self.RA_min_sensitivity_BOX.setEditText(str(data_in.min_treshold))
|
||||||
self.RA_max_sensitivity_BOX.setEditText(str(data_in.max_treshold))
|
self.RA_max_sensitivity_BOX.setEditText(str(data_in.max_treshold))
|
||||||
@ -205,21 +209,23 @@ class Ui(QtWidgets.QMainWindow):
|
|||||||
self.redet_bad_spinBox.setValue(data_in.redet_bad)
|
self.redet_bad_spinBox.setValue(data_in.redet_bad)
|
||||||
self.Work_Mode_pacemaker.setCurrentIndex(data_in.Work_Mode_pacemaker)
|
self.Work_Mode_pacemaker.setCurrentIndex(data_in.Work_Mode_pacemaker)
|
||||||
self.Spi_spot_set_spinBox.setValue(data_in.spi_pot_set)
|
self.Spi_spot_set_spinBox.setValue(data_in.spi_pot_set)
|
||||||
self.hv_polarity_BOX.setValue(data_in.hv_polarity)
|
self.hv_polarity_BOX.setCurrentIndex(data_in.hv_polarity)#fixed
|
||||||
self.hv_mode_BOX.setValue(data_in.hv_mode)
|
self.hv_mode_BOX.setCurrentIndex(data_in.hv_mode)#fixed
|
||||||
self.t1_hv_phase_1_duration_SpinBox.setValue(data_in.hv_phase_1_duration / 10.0)
|
self.t1_hv_phase_1_duration_SpinBox.setValue(data_in.hv_phase_1_duration / 10.0)
|
||||||
self.t3_hv_phase_2_duration_SpinBox.setValue(data_in.hv_phase_2_duration / 10.0)
|
self.t3_hv_phase_2_duration_SpinBox.setValue(data_in.hv_phase_2_duration / 10.0)
|
||||||
self.t2_hv_switch_duration_SpinBox.setValue(data_in.hv_switch_duration / 10.0)
|
self.t2_hv_switch_duration_SpinBox.setValue(data_in.hv_switch_duration / 10.0)
|
||||||
self.u1_hv_switching_voltage_spinBox.setValue(data_in.hv_switching_voltage)
|
self.u1_hv_switching_voltage_spinBox.setValue(data_in.hv_switching_voltage)
|
||||||
self.u2_hv_cutoff_voltage_spinBox.setValue(data_in.hv_cutoff_voltage)
|
self.u2_hv_cutoff_voltage_spinBox.setValue(data_in.hv_cutoff_voltage)
|
||||||
self.lv_polarity_BOX.setValue(data_in.lv_polarity)
|
self.lv_polarity_BOX.setCurrentIndex(data_in.lv_polarity)
|
||||||
self.lv_mode_BOX.setValue(data_in.lv_mode)
|
self.lv_mode_BOX.setCurrentIndex(data_in.lv_mode)
|
||||||
self.t1_lv_shock_time_SpinBox().setValue(data_in.lv_shock_time / 10.0)
|
|
||||||
self.t2_lv_relax_time_spinBox().setValue(data_in.lv_relax_time)
|
self.t1_lv_shock_time_SpinBox.setValue(data_in.lv_shock_time / 10.0)
|
||||||
self.u_lv_voltage_SpinBox().setValue(data_in.lv_voltage / 10.0)
|
self.t2_lv_relax_time_spinBox.setValue(data_in.lv_relax_time)
|
||||||
|
self.u_lv_voltage_SpinBox.setValue(data_in.lv_voltage / 10.0)
|
||||||
|
|
||||||
self.burst_cnt_spinBox.setValue(data_in.burst_cnt)
|
self.burst_cnt_spinBox.setValue(data_in.burst_cnt)
|
||||||
self.burst_voltage_SpinBox.setValue(data_in.burst_voltage / 10.0)
|
self.burst_voltage_SpinBox.setValue(data_in.burst_voltage / 10.0)
|
||||||
self.burst_period.setValue(data_in.burst_period)
|
self.burst_period_spinBox.setValue(data_in.burst_period) #fixed
|
||||||
|
|
||||||
|
|
||||||
def timerEvent(self):
|
def timerEvent(self):
|
||||||
@ -581,6 +587,16 @@ class Ui(QtWidgets.QMainWindow):
|
|||||||
param = int(self.DC_cut_Box.currentIndex())
|
param = int(self.DC_cut_Box.currentIndex())
|
||||||
my_data.state_packet(self.send_mode, self.serial, 0x21, param, 1, int)
|
my_data.state_packet(self.send_mode, self.serial, 0x21, param, 1, int)
|
||||||
|
|
||||||
|
def set_HV_Box(self):
|
||||||
|
"""Настройка активации режима высоковольтной стимуляции"""
|
||||||
|
param = int(self.HV_Box.currentIndex())
|
||||||
|
my_data.state_packet(self.send_mode, self.serial, 0x0F, param, 1, int)
|
||||||
|
|
||||||
|
def set_LV_Box(self):
|
||||||
|
"""Настройка активации режима низковольтной стимуляции"""
|
||||||
|
param = int(self.LV_Box.currentIndex())
|
||||||
|
my_data.state_packet(self.send_mode, self.serial, 0x0E, param, 1, int)
|
||||||
|
|
||||||
def set_Signal_Box(self):
|
def set_Signal_Box(self):
|
||||||
"""Настройка вывода сигнала с/без фильтром(а)"""
|
"""Настройка вывода сигнала с/без фильтром(а)"""
|
||||||
param = int(self.Signal_Box.currentIndex())
|
param = int(self.Signal_Box.currentIndex())
|
||||||
@ -771,15 +787,17 @@ class Ui(QtWidgets.QMainWindow):
|
|||||||
"""Выбор режима низковольтной стимуляции"""
|
"""Выбор режима низковольтной стимуляции"""
|
||||||
param = self.lv_mode_BOX.currentIndex()
|
param = self.lv_mode_BOX.currentIndex()
|
||||||
match param:
|
match param:
|
||||||
case 3:
|
case 1:
|
||||||
self.burst_frame.setVisible(True)
|
self.burst_frame.setVisible(True)
|
||||||
case _:
|
case _:
|
||||||
self.burst_frame.setVisible(False)
|
self.burst_frame.setVisible(True)
|
||||||
if param == 3:
|
|
||||||
my_data.state_packet(self.send_mode, self.serial, 0x23, 15, 1, int)
|
|
||||||
else:
|
|
||||||
my_data.state_packet(self.send_mode, self.serial, 0x23, param, 1, int)
|
my_data.state_packet(self.send_mode, self.serial, 0x23, param, 1, int)
|
||||||
|
|
||||||
|
# if param == 3:
|
||||||
|
# my_data.state_packet(self.send_mode, self.serial, 0x23, 15, 1, int)
|
||||||
|
# else:
|
||||||
|
# my_data.state_packet(self.send_mode, self.serial, 0x23, param, 1, int)
|
||||||
|
|
||||||
|
|
||||||
def set_lv_polarity_BOX(self):
|
def set_lv_polarity_BOX(self):
|
||||||
"""Выбор полярности для НВ"""
|
"""Выбор полярности для НВ"""
|
||||||
@ -797,7 +815,7 @@ class Ui(QtWidgets.QMainWindow):
|
|||||||
my_data.state_packet(self.send_mode, self.serial, 0x24, param, 1, int)
|
my_data.state_packet(self.send_mode, self.serial, 0x24, param, 1, int)
|
||||||
def set_t2_lv_relax_time_spinBox(self):
|
def set_t2_lv_relax_time_spinBox(self):
|
||||||
"""Выбор времени стабилизации после НВ стимуляции"""
|
"""Выбор времени стабилизации после НВ стимуляции"""
|
||||||
param = int(self.t2_lv_relax_time_spinBox.value() * 10)
|
param = int(self.t2_lv_relax_time_spinBox.value())
|
||||||
my_data.state_packet(self.send_mode, self.serial, 0x25, param, 1, int)
|
my_data.state_packet(self.send_mode, self.serial, 0x25, param, 1, int)
|
||||||
def set_burst_cnt_spinBox(self):
|
def set_burst_cnt_spinBox(self):
|
||||||
"""Выбор количества импульсов в пачке при НВ стимуляции"""
|
"""Выбор количества импульсов в пачке при НВ стимуляции"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user