forked from M-Labs/thermostat
Put temperature on anyway
This commit is contained in:
parent
aac5172397
commit
d9fc7a9e27
@ -30,15 +30,15 @@ class Series:
|
|||||||
series = {
|
series = {
|
||||||
# 'adc': Series(),
|
# 'adc': Series(),
|
||||||
# 'sens': Series(lambda x: x * 0.0001),
|
# 'sens': Series(lambda x: x * 0.0001),
|
||||||
'temperature': Series(),
|
# 'temperature': Series(),
|
||||||
# 'i_set': Series(),
|
'i_set': Series(),
|
||||||
'pid_output': Series(),
|
# 'pid_output': Series(),
|
||||||
# 'vref': Series(),
|
# 'vref': Series(),
|
||||||
# 'dac_value': Series(),
|
# 'dac_value': Series(),
|
||||||
# 'dac_feedback': Series(),
|
# 'dac_feedback': Series(),
|
||||||
# 'i_tec': Series(),
|
'i_tec': Series(),
|
||||||
'tec_i': Series(),
|
'tec_i': Series(),
|
||||||
'tec_u_meas': Series(),
|
# 'tec_u_meas': Series(),
|
||||||
# 'interval': Series(),
|
# 'interval': Series(),
|
||||||
}
|
}
|
||||||
series_lock = Lock()
|
series_lock = Lock()
|
||||||
|
@ -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.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.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)
|
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("Temperature").setValue(settings['temperature'])
|
||||||
|
if settings['tec_i'] is not None:
|
||||||
self.params[channel].child("Current through TEC").setValue(settings['tec_i'] * 1000)
|
self.params[channel].child("Current through TEC").setValue(settings['tec_i'] * 1000)
|
||||||
|
|
||||||
@pyqtSlot(list)
|
@pyqtSlot(list)
|
||||||
|
Loading…
Reference in New Issue
Block a user