aboutsummaryrefslogtreecommitdiff
path: root/eitControl.py
diff options
context:
space:
mode:
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']