exopy_hqc_legacy/tasks/tasks/instr/lock_in_measure_task.py
def perform(self):
        """Wait and query the last value in the instrument buffer.

        """
        sleep(self.waiting_time)

        if self.mode == 'X':
            value = self.driver.read_x()
            self.write_in_database('x', value)
        elif self.mode == 'Y':
            value = self.driver.read_y()
            self.write_in_database('y', value)
        elif self.mode == 'X&Y':
            value_x, value_y = self.driver.read_xy()
            self.write_in_database('x', value_x)
            self.write_in_database('y', value_y)
        elif self.mode == 'Amp':
            value = self.driver.read_amplitude()
            self.write_in_database('amplitude', value)
        elif self.mode == 'Phase':
            value = self.driver.read_phase()
            self.write_in_database('phase', value)
        elif self.mode == 'Amp&Phase':
            amplitude, phase = self.driver.read_amp_and_phase()
            self.write_in_database('amplitude', amplitude)
            self.write_in_database('phase', phase)
Wait and query the last value in the instrument buffer.

        
Wait and query the last value in the instrument buffer.
Wait and query the last value in the instrument buffer .
def perform(self):
        sleep(self.waiting_time)
        if self.mode == 'X':
            value = self.driver.read_x()
            self.write_in_database('x', value)
        elif self.mode == 'Y':
            value = self.driver.read_y()
            self.write_in_database('y', value)
        elif self.mode == 'X&Y':
            value_x, value_y = self.driver.read_xy()
            self.write_in_database('x', value_x)
            self.write_in_database('y', value_y)
        elif self.mode == 'Amp':
            value = self.driver.read_amplitude()
            self.write_in_database('amplitude', value)
        elif self.mode == 'Phase':
            value = self.driver.read_phase()
            self.write_in_database('phase', value)
        elif self.mode == 'Amp&Phase':
            amplitude, phase = self.driver.read_amp_and_phase()
            self.write_in_database('amplitude', amplitude)
            self.write_in_database('phase', phase)
def perform ( self ) : sleep ( self . waiting_time ) if self . mode == 'X' : value = self . driver . read_x ( ) self . write_in_database ( 'x' , value ) elif self . mode == 'Y' : value = self . driver . read_y ( ) self . write_in_database ( 'y' , value ) elif self . mode == 'X&Y' : value_x , value_y = self . driver . read_xy ( ) self . write_in_database ( 'x' , value_x ) self . write_in_database ( 'y' , value_y ) elif self . mode == 'Amp' : value = self . driver . read_amplitude ( ) self . write_in_database ( 'amplitude' , value ) elif self . mode == 'Phase' : value = self . driver . read_phase ( ) self . write_in_database ( 'phase' , value ) elif self . mode == 'Amp&Phase' : amplitude , phase = self . driver . read_amp_and_phase ( ) self . write_in_database ( 'amplitude' , amplitude ) self . write_in_database ( 'phase' , phase )
Wait and query the last value in the instrument buffer.
Wait and query the last value in the instrument buffer .
"""Wait and query the last value in the instrument buffer.

        """
self