diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-15 14:21:40 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-15 14:21:40 -0500 |
commit | 462151d1544adffcbfe2eb67d2776d4e5e1aced0 (patch) | |
tree | 2ac74656ed2adc44c6636b6ff6378a6ed88aebc3 /examples/lock_eit.py | |
parent | e7359f37d257f0a2c92e1092a6160d01da6af601 (diff) | |
download | pyExpControl-462151d1544adffcbfe2eb67d2776d4e5e1aced0.tar.gz pyExpControl-462151d1544adffcbfe2eb67d2776d4e5e1aced0.zip |
even more modular design
Diffstat (limited to 'examples/lock_eit.py')
-rw-r--r-- | examples/lock_eit.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/lock_eit.py b/examples/lock_eit.py index de87de0..5dd8ceb 100644 --- a/examples/lock_eit.py +++ b/examples/lock_eit.py @@ -72,6 +72,7 @@ def updateLogPlot(apparatus): plt.clf() log.plot() plt.pause(.0001) + print(f're-plotting') def updateLogPlotLoop(apparatus): while True: @@ -84,6 +85,13 @@ def updateLogFile(apparatus): logFileName = apparatus.logFileName if logFileName is not None: log.save(logFileName, item_format='.15e') + print(f'Saving to {logFileName}') + +def updateLogFileLoop(apparatus): + while True: + updateLogFile(apparatus) + if not apparatus.runStatus: + break freqZero = 6834687190 |