Commit 7bfe1b4a authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Attemps to use the sampling_rate in _vab_pulse

Showing with 2 additions and 2 deletions
+2 -2
...@@ -73,8 +73,8 @@ class OhmPiHardware: ...@@ -73,8 +73,8 @@ class OhmPiHardware:
if polarity is not None and polarity != self.tx.polarity: if polarity is not None and polarity != self.tx.polarity:
self.tx.polarity = polarity self.tx.polarity = polarity
self.tx.voltage = vab self.tx.voltage = vab
injection = Thread(target=inject, args=self, kwargs={'duration':length}) injection = Thread(target=inject, args=[self], kwargs={'duration':length})
readings = Thread(target=read_values, args=self, kwargs={'sampling_rate': sampling_rate}) readings = Thread(target=read_values, args=[self], kwargs={'sampling_rate': sampling_rate})
# set gains automatically # set gains automatically
self.tx.adc_gain_auto() self.tx.adc_gain_auto()
self.rx.adc_gain_auto() self.rx.adc_gain_auto()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment