aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
Diffstat (limited to 'qolab')
-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):