Add i_set

This commit is contained in:
atse 2023-07-20 13:48:10 +08:00 committed by Tse Kwok Yan
parent 7d4069497e
commit aa2005cec8
1 changed files with 2 additions and 0 deletions

View File

@ -293,6 +293,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
channel = settings["channel"]
with QSignalBlocker(params[channel]):
params[channel].child("Temperature PID").setValue(settings["pid_engaged"])
if not settings["pid_engaged"]:
params[channel].child("Constant Current").setValue(settings["i_set"])
@pyqtSlot(list)
def update_thermistor(self, sh_data):