diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-21 11:00:24 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-21 11:00:24 -0500 |
commit | 4cfd39054b309412565c1060e8ef214e5615d5c2 (patch) | |
tree | c74b00f19d4500a65096db58a364c330b1dfe818 | |
parent | 59db98abec1dd2e45fac5d9f612f8b12f0738411 (diff) | |
download | pyExpControl-4cfd39054b309412565c1060e8ef214e5615d5c2.tar.gz pyExpControl-4cfd39054b309412565c1060e8ef214e5615d5c2.zip |
added back RF power sweep
-rw-r--r-- | examples/lock_eit.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/examples/lock_eit.py b/examples/lock_eit.py index db32e3b..8d33fdf 100644 --- a/examples/lock_eit.py +++ b/examples/lock_eit.py @@ -181,23 +181,23 @@ async def main(): logger.info('========= Long term lock ===========') apparatus.gui_log.setTraces( initLog() ) apparatus.runStatus = True - apparatus.state = f'Long term lock RF power {rfPout} dBm' - logger.info(apparatus.state) - update_webpage(apparatus=apparatus) - res = await asyncio.gather( - feedbackLoop(apparatus, nsteps=100000) - ) - # for p in np.linspace(0,9, 110): - # ai['rfgen'].setRFAmplitude(p) - # rfPout = ai['rfgen'].getRFAmplitude() - # apparatus.state = f'Long term lock RF power {rfPout} dBm' - # logger.info(apparatus.state) - # update_webpage(apparatus=apparatus) - # ai['pid'].reset() - # apparatus.runStatus = True - # res = await asyncio.gather( - # feedbackLoop(apparatus, nsteps=50) - # ) + # apparatus.state = f'Long term lock RF power {rfPout} dBm' + # logger.info(apparatus.state) + # update_webpage(apparatus=apparatus) + # res = await asyncio.gather( + # feedbackLoop(apparatus, nsteps=100000) + # ) + for p in np.linspace(0,9, 110): + ai['rfgen'].setRFAmplitude(p) + rfPout = ai['rfgen'].getRFAmplitude() + apparatus.state = f'Long term lock RF power {rfPout} dBm' + logger.info(apparatus.state) + update_webpage(apparatus=apparatus) + ai['pid'].reset() + apparatus.runStatus = True + res = await asyncio.gather( + feedbackLoop(apparatus, nsteps=50) + ) apparatus.state = 'Done working with hardware' logger.info(apparatus.state) |