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
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