aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-21 17:33:49 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-21 17:33:49 -0500
commit5796c26fa86dbd77bbd6caf5122961d4d49e78f5 (patch)
treedcac852e74afc88e8dad586ed26b62449404c749 /examples
parent89d44868aac27aa10cc0170b7dd7afa1a9551830 (diff)
downloadqolab-5796c26fa86dbd77bbd6caf5122961d4d49e78f5.tar.gz
qolab-5796c26fa86dbd77bbd6caf5122961d4d49e78f5.zip
added negative m resonance positions
Diffstat (limited to 'examples')
-rw-r--r--examples/lock_eit.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/lock_eit.py b/examples/lock_eit.py
index 8d33fdf..eeb6d95 100644
--- a/examples/lock_eit.py
+++ b/examples/lock_eit.py
@@ -118,7 +118,9 @@ def adjustRFandLog(apparatus):
freqZero = 6834686400
-freqDeltaM2 = 6835387100
+freqDeltaMp2 = 6835387100
+dfB = freqDeltaMp2 - freqZero
+freqDeltaMm2 = freqZero - dfB;
async def main():
task_wp_update_loop = asyncio.create_task(update_webpage_loop(update_interval=1))
@@ -126,7 +128,7 @@ async def main():
apparatus.config['Device model'] = 'v0.1'
apparatus.config['FnamePrefix'] = 'locked_magnetometer'
apparatus.config['SavePath'] = '/mnt/qol_grp_data/data.VAMPIRE.HighPower'
- apparatus.config['SavePath'] = './data'
+ # apparatus.config['SavePath'] = './data'
apparatus.gui_log = gui.QOLTimeLog(a=wp)
apparatus.gui_log.save_controls.getNextDataFile = apparatus.getNextDataFile
@@ -159,9 +161,10 @@ async def main():
SweepSpan = 10000
ai['rfgen'].stopFrequencySweep()
- ai['rfgen'].setFreqFixed(freqDeltaM2)
+ ai['rfgen'].setFreqFixed(freqDeltaMp2)
# ai['rfgen'].setFreqFixed(freqZero)
- ai['rfgen'].setRFAmplitude(3.4)
+ # ai['rfgen'].setFreqFixed(freqDeltaMm2)
+ ai['rfgen'].setRFAmplitude(0)
d=getConfig(apparatus)
instruments_config=gui.QOLDictionary(a=wp, name='Instruments configs', container=d)
@@ -188,6 +191,7 @@ async def main():
# feedbackLoop(apparatus, nsteps=100000)
# )
for p in np.linspace(0,9, 110):
+ # for p in np.linspace(0,9, 11):
ai['rfgen'].setRFAmplitude(p)
rfPout = ai['rfgen'].getRFAmplitude()
apparatus.state = f'Long term lock RF power {rfPout} dBm'