From fd058ebf6276a620ee7d0fb86dfc5d7d3655036d Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 13 Jul 2021 11:33:53 -0400 Subject: need to sweep rfGen on back stroke --- eitControl.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'eitControl.py') 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'] -- cgit v1.2.3