aboutsummaryrefslogtreecommitdiff
path: root/eitControl.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-07-13 11:33:53 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-07-13 11:33:53 -0400
commitfd058ebf6276a620ee7d0fb86dfc5d7d3655036d (patch)
tree2f30c2b3bbd0486eca02792dff7afc81381eb318 /eitControl.py
parent667ebfcf1f0d3ba776047bbcc3d03de86aa4ec2a (diff)
downloadqolab-fd058ebf6276a620ee7d0fb86dfc5d7d3655036d.tar.gz
qolab-fd058ebf6276a620ee7d0fb86dfc5d7d3655036d.zip
need to sweep rfGen on back stroke
Diffstat (limited to 'eitControl.py')
-rw-r--r--eitControl.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/eitControl.py b/eitControl.py
index acf42e6..10832fc 100644
--- a/eitControl.py
+++ b/eitControl.py
@@ -297,23 +297,22 @@ class Experiment:
if swp is None:
swp = self.sweeper
+ # RF generator
+ rfFreq = self.rfGenFunc.getValue(swp)
+ self.hardware['rfGen'].setFreq(rfFreq)
# 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
+ rf_freq_Name = self.config['RF'].get('frequency_export_name')
+ self.data[rf_freq_Name].append(rfFreq)
# global tic counter
tic = self.sweeper.getCnt()
self.data['tic'].append(tic)
- # RF generator
- rfFreq = self.rfGenFunc.getValue(swp)
- self.hardware['rfGen'].setFreq(rfFreq)
- rf_freq_Name = self.config['RF'].get('frequency_export_name')
- self.data[rf_freq_Name].append(rfFreq)
-
# DAQ
daq0 = self.hardware['LabJack']