Commit 2cf6d04e authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Set LO to 1GHz upon stopping doppler correction

parent 0e987af7
...@@ -43,7 +43,8 @@ def track_doppler(lo=None, dt=None, ...@@ -43,7 +43,8 @@ def track_doppler(lo=None, dt=None,
doppler_function=doppler_harm_bl, doppler_function=doppler_harm_bl,
exit_event=None, exit_event=None,
timeout=0.5): timeout=0.5):
"""Sets the Local Oscillator to a frequency to correct for Doppler shift """Sets the Local Oscillator to a frequency to correct for Doppler shift. When exit event is
set, return the LO frequency to 1GHz.
Args: Args:
lo (LocalOscillator): the local oscillator of which the frequency will be set. lo (LocalOscillator): the local oscillator of which the frequency will be set.
...@@ -73,3 +74,4 @@ def track_doppler(lo=None, dt=None, ...@@ -73,3 +74,4 @@ def track_doppler(lo=None, dt=None,
dfreq = 1*u.GHz + tracking_frequency - freq_doppler dfreq = 1*u.GHz + tracking_frequency - freq_doppler
lo.frequency = dfreq lo.frequency = dfreq
exit_event.wait(timeout=timeout) exit_event.wait(timeout=timeout)
lo.frequency = 1*u.GHz
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment