diff --git a/ohmpi/hardware_components/pwr_dps5005.py b/ohmpi/hardware_components/pwr_dps5005.py index 368537865bff3aa04cc7a6c5b73a376bf1903959..cc12fc3e44d2f03343403a7c9b3551eccd991b29 100644 --- a/ohmpi/hardware_components/pwr_dps5005.py +++ b/ohmpi/hardware_components/pwr_dps5005.py @@ -91,7 +91,6 @@ class Pwr(PwrAbstract): if state == 'on': self.connection.write_register(0x09, 1) self.current_max(self._current_max) - print(self._current_max) self._pwr_state = 'on' self.exec_logger.debug(f'{self.model} is on') time.sleep(self._pwr_latency) # from pwr specs diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 23b08b3d681d2c875f726f5c3de8ba48620bb6de..6e79220a44f1f1c6cdf7e8b916e62380440125fa 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -430,7 +430,7 @@ class OhmPiHardware: sampling_rate = self.rx.sampling_rate current, voltage = 0., 0. diff_vab = np.inf - while (k < n_steps) and (diff_vab > diff_vab_lim): + while (k < n_steps) and (diff_vab > diff_vab_lim) and (vab_list[k]>=vab_max): vabs = [] self._vab_pulses(vab_list[k], sampling_rate=self.rx.sampling_rate, durations=[0.2, 0.2], polarities=[1, -1]) for pulse in range(2):