diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-01-04 21:43:22 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-01-04 21:43:22 -0500 |
commit | 2a4a7e5a7fcad524b73559d67276b3444c1893fc (patch) | |
tree | 58f9b220256a6f2098dc7b6b8086f7b4daf5183f /examples | |
parent | 50beed05de2d2e66883f1c67e25171ef5f9b5fca (diff) | |
download | qolab-2a4a7e5a7fcad524b73559d67276b3444c1893fc.tar.gz qolab-2a4a7e5a7fcad524b73559d67276b3444c1893fc.zip |
assigning config before its use in webform
Diffstat (limited to 'examples')
-rw-r--r-- | examples/lock_eit.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/lock_eit.py b/examples/lock_eit.py index 0c10d12..13f03d3 100644 --- a/examples/lock_eit.py +++ b/examples/lock_eit.py @@ -245,13 +245,15 @@ async def record_magnetometer_noise(apparatus): scope.setConfig(old_config) async def longTermLock(apparatus, extra_tags={}): - ai = apparatus.instruments - rfPout = apparatus.getRFAmplitude() apparatus.state = f'Long term lock RF power {rfPout} dBm' logger.info(apparatus.state) - apparatus.gui_log.setTraces( initLog(extra_tags=extra_tags) ) + + ai = apparatus.instruments + rfPout = apparatus.getRFAmplitude() apparatus.runStatus = True ai['pid'].setEnable(True) + + apparatus.gui_log.setTraces( initLog(extra_tags=extra_tags) ) update_webpage(apparatus=apparatus) res = await asyncio.gather( |