From 462151d1544adffcbfe2eb67d2776d4e5e1aced0 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 15 Dec 2021 14:21:40 -0500 Subject: even more modular design --- examples/lock_eit.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3