Compare commits

..

1 Commits

Author SHA1 Message Date
atse d3dc9f9b37 Finish GUI 2024-04-24 12:46:37 +08:00
1 changed files with 3 additions and 2 deletions

View File

@ -840,9 +840,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.params[channel].child("Output Config", "Control Method").setValue("Temperature PID" if settings["pid_engaged"] else "Constant Current")
self.channel_graphs[channel].set_t_line(visible=settings['pid_engaged'])
self.params[channel].child("Output Config", "Control Method", "Set Current").setValue(settings["i_set"] * 1000)
if settings['temperature'] is not None and settings['tec_i'] is not None:
if settings['temperature'] is not None:
self.params[channel].child("Temperature").setValue(settings['temperature'])
self.params[channel].child("Current through TEC").setValue(settings['tec_i'] * 1000)
if settings['tec_i'] is not None:
self.params[channel].child("Current through TEC").setValue(settings['tec_i'] * 1000)
@pyqtSlot(list)
def update_thermistor(self, sh_data):