aboutsummaryrefslogtreecommitdiff
path: root/eitControl.py
diff options
context:
space:
mode:
Diffstat (limited to 'eitControl.py')
-rw-r--r--eitControl.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/eitControl.py b/eitControl.py
index d258ae4..acf42e6 100644
--- a/eitControl.py
+++ b/eitControl.py
@@ -297,6 +297,13 @@ class Experiment:
if swp is None:
swp = self.sweeper
+ # skip data update based on independent variable (rfGen) sweep direction
+ sweep_direction = self.rfGenFunc.getSweepDirection(swp)
+ if sweep_direction < .5:
+ # sweep_direction is either 0 or 1
+ # we do no data collection on the backward stroke
+ return
+
# global tic counter
tic = self.sweeper.getCnt()
self.data['tic'].append(tic)