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