mirror of
https://github.com/nqrduck/nqrduck-autotm.git
synced 2024-12-21 23:30:27 +00:00
Error handling LUT generation.
This commit is contained in:
parent
0e2905b895
commit
211670f2ce
1 changed files with 5 additions and 4 deletions
|
@ -501,16 +501,17 @@ class AutoTMController(ModuleController):
|
||||||
)
|
)
|
||||||
|
|
||||||
LUT.started_frequency = start_frequency
|
LUT.started_frequency = start_frequency
|
||||||
self.module.model.LUT = LUT
|
|
||||||
|
|
||||||
# We write the first command to the serial connection
|
# We write the first command to the serial connection
|
||||||
command = "s%s" % (start_frequency)
|
command = "s%s" % (start_frequency)
|
||||||
self.module.view.create_el_LUT_spinner_dialog()
|
|
||||||
# For timing of the voltage sweep
|
# For timing of the voltage sweep
|
||||||
self.module.model.voltage_sweep_start = time.time()
|
self.module.model.voltage_sweep_start = time.time()
|
||||||
confirmation = self.send_command(command)
|
confirmation = self.send_command(command)
|
||||||
if not confirmation:
|
# If the command was send successfully, we set the LUT
|
||||||
return
|
if confirmation:
|
||||||
|
self.module.model.LUT = LUT
|
||||||
|
self.module.view.create_el_LUT_spinner_dialog()
|
||||||
|
|
||||||
def switch_to_preamp(self) -> None:
|
def switch_to_preamp(self) -> None:
|
||||||
"""This method is used to send the command 'cp' to the atm system. This switches the signal pathway of the atm system to 'RX' to 'Preamp'.
|
"""This method is used to send the command 'cp' to the atm system. This switches the signal pathway of the atm system to 'RX' to 'Preamp'.
|
||||||
|
|
Loading…
Reference in a new issue