aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-15 14:21:40 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-15 14:21:40 -0500
commit462151d1544adffcbfe2eb67d2776d4e5e1aced0 (patch)
tree2ac74656ed2adc44c6636b6ff6378a6ed88aebc3
parente7359f37d257f0a2c92e1092a6160d01da6af601 (diff)
downloadpyExpControl-462151d1544adffcbfe2eb67d2776d4e5e1aced0.tar.gz
pyExpControl-462151d1544adffcbfe2eb67d2776d4e5e1aced0.zip
even more modular design
-rw-r--r--examples/lock_eit.py8
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