diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index e88df6a..7239e8a 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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):