aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/lock_eit.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/examples/lock_eit.py b/examples/lock_eit.py
index ad14977..ee098f8 100644
--- a/examples/lock_eit.py
+++ b/examples/lock_eit.py
@@ -361,15 +361,6 @@ async def main():
await initial_lock_to_eit(apparatus, extra_tags=extra_tags)
- await record_magnetometer_noise(apparatus)
-
- apparatus.gui_log.stop_tasks()
- task_wp_update_loop.cancel()
- logger.info("exiting main loop")
- update_webpage(apparatus=apparatus)
- return(apparatus)
-
-
lockin_slope= await calibratingLockin(apparatus, extra_tags=extra_tags)
ai['error_signal_response_to_eit_detuning'].conversion_factor = lockin_slope
instruments_config.container = getConfig(apparatus)
@@ -382,6 +373,14 @@ async def main():
# await sweepRFPower(apparatus, extra_tags=extra_tags, rfPowerList=rfPowerList)
+ await record_magnetometer_noise(apparatus)
+
+ apparatus.gui_log.stop_tasks()
+ task_wp_update_loop.cancel()
+ logger.info("exiting main loop")
+ update_webpage(apparatus=apparatus)
+ return(apparatus)
+
await longTermLock(apparatus, extra_tags=extra_tags)
apparatus.state = 'Done working with hardware'