From 2a4a7e5a7fcad524b73559d67276b3444c1893fc Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 4 Jan 2022 21:43:22 -0500 Subject: assigning config before its use in webform --- examples/lock_eit.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples/lock_eit.py') 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( -- cgit v1.2.3