Added lime safety.

This commit is contained in:
jupfi 2023-12-15 17:24:59 +01:00
parent 1b798cf8a2
commit bbe1798f06

View file

@ -68,7 +68,10 @@ class AutoTMController(ModuleController):
# Switch back to preamp to perform a measurement
self.switch_to_preamp()
self.module.nqrduck_signal.emit("confirm_tune_and_match", reflection)
# The Lime doesn"t like it if we send the command to switch to atm and then immediately send the command to measure the reflection.
# So we wait a bit before starting the measurement
QTimer.singleShot(100, lambda: self.module.nqrduck_signal.emit("confirm_tune_and_match", reflection))
def find_devices(self) -> None:
"""Scan for available serial devices and add them to the model as available devices."""