From 6d885d3f68bdce3bb6da95cfdc480bcc98177db4 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 31 May 2022 17:25:03 -0400 Subject: added dwell time before frequency change in hope free regime --- qolab/hardware/rf_generator/qol_lmx2487.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qolab') 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): -- cgit v1.2.3