Example #1
0
    def UsbQuant(self):
        jf = usb_commands.oneFreq(self.period, maxAmplitude=self.maxAmplitude)
        if self.corr:
            res = self.corr.calculateJson(jf)
        else:
            res = jplot.calculateJson(jf)
            res['Zx'] = res['R']

        self.SetInfo(res)
        pass
Example #2
0
	def UsbQuant(self):
		jf = usb_commands.oneFreq(self.period, maxAmplitude=self.maxAmplitude)
		if self.corr:
			res = self.corr.calculateJson(jf)
		else:
			res = jplot.calculateJson(jf)
			res['Zx'] = res['R']

		self.SetInfo(res)
		pass
Example #3
0
	def UsbThread(self):
		i = 0
		while not self.end_thread:
			jf = usb_commands.oneFreq(self.period, maxAmplitude=self.maxAmplitude)
			if self.corr:
				res = self.corr.calculateJson(jf)
			else:
				res = jplot.calculateJson(jf)
				res['Zx'] = res['R']

			if self.end_thread:
				return
			self.SetInfo(res)
		pass
Example #4
0
    def UsbThread(self):
        i = 0
        while not self.end_thread:
            jf = usb_commands.oneFreq(self.period,
                                      maxAmplitude=self.maxAmplitude)
            if self.corr:
                res = self.corr.calculateJson(jf)
            else:
                res = jplot.calculateJson(jf)
                res['Zx'] = res['R']

            if self.end_thread:
                return
            self.SetInfo(res)
        pass