Root/atusb/fw/an/get.py

Source at commit 5c5a93686b7e8985872ed451f53933f5303eba1c created 7 years 1 month ago.
By Stefan Schmidt, atusb/fw: update changelog for 0.3 firmware release
1#!/usr/bin/python
2
3from tmc.scope import rigol_ds1000c
4
5#-800, +1600
6s = rigol_ds1000c()
7#s.debug = False
8
9pos = s.hor.pos
10scale = s.hor.scale
11t0 = pos-scale*s.div_hor/2
12t1 = pos+scale*s.div_hor/2
13print t0, t1
14
15#zoom = 10
16#step = scale/s.samples_per_div/zoom
17#print step
18step = 4e-9
19step = 2e-9
20
21w = s.wave((s.ch[0], s.ch[1]), start = t0, end = t1, step = step)
22w[0] = 3.3-w[0]
23w[1] = 3.3-w[1]
24
25s.hor.pos = pos
26s.hor.scale = scale
27
28w[0].label = "D+";
29w[1].label = "D-";
30
31w.save("_wv")
32

Archive Download this file



interactive