(self, device_property)
return None
read values from the device
read values from the device
read values from the device
def read_data(self, device_property):
        """
        read values from the device
        """
        if self.inst is None:
            logger.error("Visa-AFG1022-read data-Self.inst : None")
            return None
        if device_property == 'present_value':
            return self.parse_value(self.inst.query(':READ?'))
        else:
            value = self.inst.query(device_property)
            logger.info("Visa-read data-property : %s - value : %s" % (device_property, value))
#            return value.split(',')[0]
            return self.parse_value(value)
        return None
def read_data ( self , device_property ) : if self . inst is None : logger . error ( "Visa-AFG1022-read data-Self.inst : None" ) return None if device_property == 'present_value' : return self . parse_value ( self . inst . query ( ':READ?' ) ) else : value = self . inst . query ( device_property ) logger . info ( "Visa-read data-property : %s - value : %s" % ( device_property , value ) ) #            return value.split(',')[0] return self . parse_value ( value ) return None