Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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