diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 333ed01..2f843f5 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -224,9 +224,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): {'name': 'Temperature', 'type': 'float', 'siPrefix': True, 'suffix': '°C', 'readonly': True}, {'name': 'Current through TEC', 'type': 'float', 'siPrefix': True, 'suffix': 'A', 'readonly': True}, {'name': 'Output Config', 'expanded': True, 'type': 'group', 'children': [ - {'name': 'Control Method', 'type': 'mutex', 'limits': {'Current Setpoint': False, 'Temperature PID': True}, + {'name': 'Control Method', 'type': 'mutex', 'limits': {'Constant Current': False, 'Temperature PID': True}, 'commands': [f'pwm {ch} pid'], 'children': [ - {'name': 'Constant Current', 'type': 'float', 'value': 0, 'step': 0.1, 'limits': (-3, 3), 'siPrefix': True, 'triggerOnShow': True, + {'name': 'Set Current', 'type': 'float', 'value': 0, 'step': 0.1, 'limits': (-3, 3), 'siPrefix': True, 'triggerOnShow': True, 'suffix': 'A', 'param': [('pwm', ch, 'i_set')]}, {'name': 'Set Temperature', 'type': 'float', 'value': 25, 'step': 0.1, 'limits': (-273, 300), 'siPrefix': True, 'suffix': '°C', 'param': [('pid', ch, 'target')]}, @@ -656,7 +656,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): with QSignalBlocker(self.params[channel]): self.params[channel].child("Output Config", "Control Method").setValue(settings["pid_engaged"]) self.channel_graphs[channel].t_line.setVisible(settings["pid_engaged"]) - self.params[channel].child("Output Config", "Control Method", "Constant Current").setValue(settings["i_set"]) + self.params[channel].child("Output Config", "Control Method", "Set Current").setValue(settings["i_set"]) if settings['temperature'] is not None and settings['tec_i'] is not None: self.params[channel].child("Temperature").setValue(settings['temperature']) self.params[channel].child("Current through TEC").setValue(settings['tec_i'])