diff --git a/ohmpi/hardware_components/ohmpi_card_3_15.py b/ohmpi/hardware_components/ohmpi_card_3_15.py index 77e27a56cebd910823d011330881cf8a5910d89b..3bf6e42ac97d9032b5ec16477181ee0f0ec3b882 100644 --- a/ohmpi/hardware_components/ohmpi_card_3_15.py +++ b/ohmpi/hardware_components/ohmpi_card_3_15.py @@ -240,7 +240,6 @@ class Rx(RxAbstract): def voltage(self): """ Gets the voltage VMN in Volts """ - print(f'Voltage ads: {self._ads_voltage_address}, {ads.P0}') u0 = AnalogIn(self._ads_voltage, ads.P0).voltage * 1000. u2 = AnalogIn(self._ads_voltage, ads.P2).voltage * 1000. u = np.max([u0,u2]) * (np.heaviside(u0-u2, 1.) * 2 - 1.) # gets the max between u0 & u2 and set the sign diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 30631dbf7a373fcdac560a75a887a9c61c9daf86..96d0f6ecf0b02b49294cbe7429440f0e3e2776a1 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -173,6 +173,7 @@ class OhmPiHardware: sleep_time = self._start_time + datetime.timedelta(seconds=sample * sampling_rate / 1000) - lap time.sleep(np.max([0., sleep_time.total_seconds()])) # TODO set readings to nan if sleep time <0 and skip the sample (sample +=1) self.exec_logger.warning(f'pulse {self._pulse}: elapsed time {(lap-self._start_time).total_seconds()} s') # TODO: Set to debug level + self.exec_logger.warning(f'pulse {self._pulse}: total samples {len(_readings)}') # TODO: Set to debug level self.readings = np.array(_readings) self._pulse += 1