Skip to content

Commit

Permalink
set autolock_target_position in simple autolock
Browse files Browse the repository at this point in the history
  • Loading branch information
bleykauf committed Sep 25, 2024
1 parent 605c388 commit 9d72739
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linien-server/linien_server/autolock/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def handle_new_spectrum(self, spectrum) -> None:
round((shift * (-1)) * self.parameters.sweep_amplitude.value * 8191)
)
logger.debug(f"Target position is {target_position}, shift is {shift}.")
self.parameters.autolock_target_position.value = target_position
self.control.exposed_write_registers()
self.control.exposed_pause_acquisition()
logger.info("Start lock.")
Expand Down

0 comments on commit 9d72739

Please sign in to comment.