exopy_hqc_legacy/instruments/drivers/visa/tinybuilt.py
def smooth_change(self, volt_destination, volt_step, time_step):
        """ Set a ramp from the present voltage
            to the volt_destination by step of volt_step
            with time of time_step between each step
        """
        with self.secure():
            present_voltage = round(float(self._TB.query
                                          (self._header + 'Volt?')), 5)
            while abs(round(present_voltage - volt_destination,
                            5)) >= volt_step:
                time.sleep(time_step)
                self._TB.write(self._header + 'volt {}'
                               .format(present_voltage))
                present_voltage = round(present_voltage + volt_step *
                                        np.sign(volt_destination -
                                                present_voltage), 5)
            self._TB.write(self._header + 'volt {}'
                           .format(volt_destination))
 Set a ramp from the present voltage
            to the volt_destination by step of volt_step
            with time of time_step between each step
        
Set a ramp from the present voltage
to the volt_destination by step of volt_step
with time of time_step between each step
Set a ramp from the present voltage to the volt_destination by step of volt_step with time of time_step between each step
def smooth_change(self, volt_destination, volt_step, time_step):
        with self.secure():
            present_voltage = round(float(self._TB.query
                                          (self._header + 'Volt?')), 5)
            while abs(round(present_voltage - volt_destination,
                            5)) >= volt_step:
                time.sleep(time_step)
                self._TB.write(self._header + 'volt {}'
                               .format(present_voltage))
                present_voltage = round(present_voltage + volt_step *
                                        np.sign(volt_destination -
                                                present_voltage), 5)
            self._TB.write(self._header + 'volt {}'
                           .format(volt_destination))
def smooth_change ( self , volt_destination , volt_step , time_step ) : with self . secure ( ) : present_voltage = round ( float ( self . _TB . query ( self . _header + 'Volt?' ) ) , 5 ) while abs ( round ( present_voltage - volt_destination , 5 ) ) >= volt_step : time . sleep ( time_step ) self . _TB . write ( self . _header + 'volt {}' . format ( present_voltage ) ) present_voltage = round ( present_voltage + volt_step * np . sign ( volt_destination - present_voltage ) , 5 ) self . _TB . write ( self . _header + 'volt {}' . format ( volt_destination ) )
Set a ramp from the present voltage
to the volt_destination by step of volt_step
with time of time_step between each step
Set a ramp from the present voltage to the volt_destination by step of volt_step with time of time_step between each step
""" Set a ramp from the present voltage
            to the volt_destination by step of volt_step
            with time of time_step between each step
        """
self
volt_destination
volt_step
time_step