|
|
|
@ -29,7 +29,7 @@ class MyMainScreen(QMainWindow): |
|
|
|
|
self.trig = gex.DOut(client, 'trig') |
|
|
|
|
self.adc = gex.ADC(client, 'adc') |
|
|
|
|
|
|
|
|
|
self.adc.set_sample_rate(75000) |
|
|
|
|
self.adc.set_sample_rate(80000) |
|
|
|
|
|
|
|
|
|
self.failcount = 0 |
|
|
|
|
self.skipcount = 0 |
|
|
|
@ -61,7 +61,7 @@ class MyMainScreen(QMainWindow): |
|
|
|
|
|
|
|
|
|
self.failcount = 0 |
|
|
|
|
|
|
|
|
|
self.adc.setup_trigger(1, level=1000, edge='rising', count=1000, handler=self.handle_meas) |
|
|
|
|
self.adc.setup_trigger(1, level=1000, edge='rising', count=1366, handler=self.handle_meas) |
|
|
|
|
self.adc.arm() |
|
|
|
|
|
|
|
|
|
self.trig.pulse_us(10) |
|
|
|
@ -120,5 +120,5 @@ class MyMainScreen(QMainWindow): |
|
|
|
|
with gex.Client(gex.TrxSerialThread()) as client: |
|
|
|
|
app = QApplication(sys.argv) |
|
|
|
|
mainscreen = MyMainScreen(client) |
|
|
|
|
mainscreen.show() |
|
|
|
|
mainscreen.showFullScreen() |
|
|
|
|
app.exec_() |
|
|
|
|