diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-25 00:10:25 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-25 00:10:25 -0400 |
commit | 2f10dec0561c3fb9437695dd5628cc7d6e00758a (patch) | |
tree | 1f5c6763182f8400c8e4bb8cd633af5c4d913b4a /eitControl.py | |
parent | 2972e5ea71543e763bf1893528d94e029a7268a3 (diff) | |
download | qolab-2f10dec0561c3fb9437695dd5628cc7d6e00758a.tar.gz qolab-2f10dec0561c3fb9437695dd5628cc7d6e00758a.zip |
simplified ADC readout
Diffstat (limited to 'eitControl.py')
-rw-r--r-- | eitControl.py | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/eitControl.py b/eitControl.py index 2c637e3..514c7e3 100644 --- a/eitControl.py +++ b/eitControl.py @@ -321,25 +321,11 @@ class Experiment: daq0.setOutputCh(1, dac1) self.data['dac1'].append(dac1) - # adc0 - adc0= daq0.getInputCh(0) - # adc0 = SinGen(ampl=4, sweeper=swp).getValue() - self.data['adc0'].append( adc0 ) - - # adc1 - adc1= daq0.getInputCh(1) - # adc1 = SinGen(ampl=1, sweeper=swp).getValue() - self.data['adc1'].append( adc1 ) - - # adc2 - adc2= daq0.getInputCh(2) - # adc2 = SinGen(ampl=2, sweeper=swp).getValue() - self.data['adc2'].append( adc2 ) - - # adc3 - adc3= daq0.getInputCh(3) - # adc3 = SinGen(ampl=3, sweeper=swp).getValue() - self.data['adc3'].append( adc3 ) + for ch in self.config['DAQ']: + if ch[0:3] == 'ain': + n=int(ch[3:]) + vIn = daq0.getInputCh(n) + self.data[ch].append( vIn ) # X-axis (i.e. independent variable) x=self.data[self.xChannelName] |