IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| Source at commit 8c574484b889c7b17d2ba4b6929947050f87d91e created 6 years 3 months ago. By Josef Filzmaier, atusb/fw: Introduce DEBUG flag | |
|---|---|
| 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") |
| 32 | |
