projects
/
linux-libre-firmware.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
carl9170: Update to latest upstream
[linux-libre-firmware.git]
/
atusb
/
an
/
get.py
1
#!/usr/bin/python
2
3
from tmc.scope import rigol_ds1000c
4
5
#-800, +1600
6
s = rigol_ds1000c()
7
#s.debug = False
8
9
pos = s.hor.pos
10
scale = s.hor.scale
11
t0 = pos-scale*s.div_hor/2
12
t1 = pos+scale*s.div_hor/2
13
print t0, t1
14
15
#zoom = 10
16
#step = scale/s.samples_per_div/zoom
17
#print step
18
step = 4e-9
19
step = 2e-9
20
21
w = s.wave((s.ch[0], s.ch[1]), start = t0, end = t1, step = step)
22
w[0] = 3.3-w[0]
23
w[1] = 3.3-w[1]
24
25
s.hor.pos = pos
26
s.hor.scale = scale
27
28
w[0].label = "D+";
29
w[1].label = "D-";
30
31
w.save("_wv")