1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

moved atusb/fw3/ to atusb/fw/

This commit is contained in:
Werner Almesberger
2011-02-22 00:24:07 -03:00
parent 2642b9e1c3
commit 78cfc8ffeb
17 changed files with 0 additions and 0 deletions

31
atusb/fw/an/get.py Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/python
from tmc.scope import rigol_ds1000c
#-800, +1600
s = rigol_ds1000c()
#s.debug = False
pos = s.hor.pos
scale = s.hor.scale
t0 = pos-scale*s.div_hor/2
t1 = pos+scale*s.div_hor/2
print t0, t1
#zoom = 10
#step = scale/s.samples_per_div/zoom
#print step
step = 4e-9
step = 2e-9
w = s.wave((s.ch[0], s.ch[1]), start = t0, end = t1, step = step)
w[0] = 3.3-w[0]
w[1] = 3.3-w[1]
s.hor.pos = pos
s.hor.scale = scale
w[0].label = "D+";
w[1].label = "D-";
w.save("_wv")