Commit cfef5880 authored by Matthieu Cattin's avatar Matthieu Cattin

Acquisition of 10000 samples.

parent 6632e8f9
......@@ -34,7 +34,7 @@ USB_DEVICE = "/dev/ttyUSB0"
RS232_BAUD = 57600
NB_CHANNELS = 4
AWG_SET_SLEEP = 1
AWG_SET_SLEEP = 0.6
SSR_SET_SLEEP = 0.05
ACQ_TIMEOUT = 10
......@@ -45,7 +45,7 @@ PRE_TRIG_SAMPLES = 10
POST_TRIG_SAMPLES = 1000
NB_SHOTS = 1
ACQ_LENGTH = 1 # in samples
ACQ_LENGTH = 10000 # in samples
DMA_LENGTH = 4096 # in bytes
# col 0: freq
......@@ -215,7 +215,7 @@ def main (default_directory='.'):
sine.frequency = 1E6
sine.amplitude = 0.8
sine.dc = 0
print('Sine frequency:%3.3fMHz amplitude:%2.3fVp offset:%2.3fV')%(sine.frequency/1E6, sine.amplitude, sine.dc)
#print('Sine frequency:%3.3fMHz amplitude:%2.3fVp offset:%2.3fV')%(sine.frequency/1E6, sine.amplitude, sine.dc)
# Set AWG
gen.connect()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment