Put temperature on anyway

This commit is contained in:
atse 2024-03-06 15:19:56 +08:00
parent aac5172397
commit d9fc7a9e27
2 changed files with 7 additions and 6 deletions

View File

@ -30,15 +30,15 @@ class Series:
series = {
# 'adc': Series(),
# 'sens': Series(lambda x: x * 0.0001),
'temperature': Series(),
# 'i_set': Series(),
'pid_output': Series(),
# 'temperature': Series(),
'i_set': Series(),
# 'pid_output': Series(),
# 'vref': Series(),
# 'dac_value': Series(),
# 'dac_feedback': Series(),
# 'i_tec': Series(),
'i_tec': Series(),
'tec_i': Series(),
'tec_u_meas': Series(),
# 'tec_u_meas': Series(),
# 'interval': Series(),
}
series_lock = Lock()

View File

@ -840,8 +840,9 @@ 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'])
if settings['tec_i'] is not None:
self.params[channel].child("Current through TEC").setValue(settings['tec_i'] * 1000)
@pyqtSlot(list)