aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/rf_generator
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-05-31 17:25:03 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-05-31 17:25:03 -0400
commit6d885d3f68bdce3bb6da95cfdc480bcc98177db4 (patch)
treed9b2aa85f265a6985509c0d793c1361b7d05f019 /qolab/hardware/rf_generator
parent911a3b20d17aa485d813ce62a1b1eaa95384f449 (diff)
downloadqolab-6d885d3f68bdce3bb6da95cfdc480bcc98177db4.tar.gz
qolab-6d885d3f68bdce3bb6da95cfdc480bcc98177db4.zip
added dwell time before frequency change in hope free regime
Diffstat (limited to 'qolab/hardware/rf_generator')
-rw-r--r--qolab/hardware/rf_generator/qol_lmx2487.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/qolab/hardware/rf_generator/qol_lmx2487.py b/qolab/hardware/rf_generator/qol_lmx2487.py
index b402c0e..340384c 100644
--- a/qolab/hardware/rf_generator/qol_lmx2487.py
+++ b/qolab/hardware/rf_generator/qol_lmx2487.py
@@ -2,6 +2,7 @@ from qolab.hardware.basic import BasicInstrument
from qolab.hardware.rf_generator import RFGenerator
import serial
import re
+import time
class QOL_LMX2487(RFGenerator):
@@ -19,8 +20,9 @@ class QOL_LMX2487(RFGenerator):
self.log = []
self.logCapacity = 10
self._FreqFixed = None
- self.hopeFreeFreqJump = 100e3 # we break laser lock if Freq change is larger
self.hopeFree = True
+ self.hopeFreeFreqJump = 100e3 # we break laser lock if Freq change is larger
+ self.dwellTime=0.1 # needed for hope free setling
if setToDefaults:
self.sendSerialCmd("set_lmx2487_board_to_default_state()")
@@ -72,6 +74,8 @@ class QOL_LMX2487(RFGenerator):
self._FreqFixed = fr
cmd_str=f'setFreq({fr:.2f})'
self.sendSerialCmd(cmd_str)
+ if not finished:
+ time.sleep(self.dwellTime)
@BasicInstrument.tsdb_append
def getFreqFixed(self):