def temperature(self, trig=True,fourwire=False): if trig: if fourwire: return float(self.query("MEAS:TEMP:FRTD? %s, %s"%(self._range,self._resolution))) else: return float(self.query("MEAS:TEMP:RTD? %s, %s"%(self._range,self._resolution))) else: if fourwire: return Instrument.configure("TEMP:FRTD") else: return Instrument.configure("TEMP:RTD")
def voltage(self, trig=True,type='DC'): if type in self.VALID_TYPE_ARGS: if trig: return float(self.query("MEAS:VOLT:%s? %s, %s"%(type.upper(),self._range,self._resolution))) else: return Instrument.configure("VOLT:%s"%(type.upper()))
def period(self, trig=True): if trig: return float(self.query("MEAS:PER? %s, %s"%(self._range,self._resolution))) else: return Instrument.configure("PER")
def frequency(self, trig=True): if trig: return float(self.query("MEAS:FREQ? %s, %s"%(self._range,self._resolution))) else: return Instrument.configure("FREQ")
def diode(self, trig=True): if trig: return float(self.query("MEAS:DIOD?")) else: return Instrument.configure("DIOD")
def continuity(self, trig=True): if trig: return float(self.query("MEAS:CONT?")) else: return Instrument.configure("CONT")
def capacitance(self, trig=True): if trig: return float(self.query("MEAS:CAP? %s, %s"%(self._range,self._resolution))) else: return Instrument.configure("CAP")