Beispiel #1
0
	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")
Beispiel #2
0
	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()))
Beispiel #3
0
	def period(self, trig=True):
		if trig:
			return float(self.query("MEAS:PER? %s, %s"%(self._range,self._resolution)))
		else:
			return Instrument.configure("PER")
Beispiel #4
0
	def frequency(self, trig=True):
		if trig:
			return float(self.query("MEAS:FREQ? %s, %s"%(self._range,self._resolution)))
		else:
			return Instrument.configure("FREQ")
Beispiel #5
0
	def diode(self, trig=True):
		if trig:
			return float(self.query("MEAS:DIOD?"))
		else:
			return Instrument.configure("DIOD")
Beispiel #6
0
	def continuity(self, trig=True):
		if trig:
			return float(self.query("MEAS:CONT?"))
		else:
			return Instrument.configure("CONT")
Beispiel #7
0
	def capacitance(self, trig=True):
		if trig:
			return float(self.query("MEAS:CAP? %s, %s"%(self._range,self._resolution)))
		else:
			return Instrument.configure("CAP")