Root/atusb/fw/an/get.py

Source at commit 8c574484b889c7b17d2ba4b6929947050f87d91e created 6 years 3 months ago.
By Josef Filzmaier, atusb/fw: Introduce DEBUG flag
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