parameters: (self, device_property)
return_statement: return None
docstring: read values from the device
docstring_summary: read values from the device
docstring_tokens: read values from the device
function: 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
function_tokens: 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