示例#1
0
    def FetchAllCurrent(self):
        """Return electric current reading.

    Returns:
      (ACDCaverge, HIGH, LOW, MAXimum, MINimum) in mA.
    """
        resp = self.ask('FETC:CURR:ACDC?; HIGH? ;LOW?; MAX?; MIN? ')
        return [core.ValueCheck(x) for x in resp.split(";")]
示例#2
0
    def MeasureAllCurrent(self):
        """Return electric current reading.

    Also initiates a measurement cycle.

    Returns:
      (ACDCaverge, LOW, HIGH, MINimum, MAXimum).
    """
        resp = self.ask('MEAS:CURR:ACDC?;:FETC:CURR:LOW?;HIGH?;MIN?;MAX?')
        return [core.ValueCheck(x) for x in resp.split(";")]
示例#3
0
 def read_values(self, length=65536):
     text = _gpib.readbin(self._id, length)
     arr = array.array("d")
     for valstring in text.split(","):
         arr.append(core.ValueCheck(valstring))
     return arr
示例#4
0
 def GetCurrentRange(self):
     return core.ValueCheck(self.ask("SENS:CURR:RANG?"))
示例#5
0
 def MeasureContinuity(self):
     self.SetMode(CONT)
     return core.ValueCheck(self.ask("MEAS?"))