Added voltage sweep signal.

This commit is contained in:
jupfi 2023-12-11 09:23:37 +01:00
parent a6ce0a7588
commit 3046b6c7d5

View file

@ -28,6 +28,7 @@ class AutoTMController(ModuleController):
self.module.model.serial_data_received.connect(self.process_frequency_sweep_data) self.module.model.serial_data_received.connect(self.process_frequency_sweep_data)
self.module.model.serial_data_received.connect(self.process_measurement_data) self.module.model.serial_data_received.connect(self.process_measurement_data)
self.module.model.serial_data_received.connect(self.process_calibration_data) self.module.model.serial_data_received.connect(self.process_calibration_data)
self.module.model.serial_data_received.connect(self.process_voltage_sweep_result)
self.module.model.serial_data_received.connect(self.print_info) self.module.model.serial_data_received.connect(self.print_info)
self.module.model.serial_data_received.connect(self.read_position_data) self.module.model.serial_data_received.connect(self.read_position_data)
self.module.model.serial_data_received.connect(self.process_reflection_data) self.module.model.serial_data_received.connect(self.process_reflection_data)
@ -922,6 +923,8 @@ class AutoTMController(ModuleController):
stepper = self.module.model.tuning_stepper stepper = self.module.model.tuning_stepper
new_magnitude = 1e6 # Big new_magnitude = 1e6 # Big
# Probably also start a frequency sweep (?)
while new_magnitude > last_magnitude: while new_magnitude > last_magnitude:
# We move the stepper # We move the stepper
last_magnitude = new_magnitude last_magnitude = new_magnitude