eyes17/code/acdc-separating.py
raw| 1 | from pylab import * |
| 2 | |
| 3 | set_sqr1(200) |
| 4 | select_range('A1',8) |
| 5 | select_range('A2',8) |
| 6 | |
| 7 | t,v, tt,vv = capture2(500, 20) # captures A1 and A2 |
| 8 | |
| 9 | xlabel('Time(mS)') |
| 10 | ylabel('Voltage(V)') |
| 11 | plot([0,10], [0,0], 'black') |
| 12 | ylim([-6,6]) |
| 13 | |
| 14 | plot(t,v,linewidth = 2, color = 'blue') |
| 15 | plot(tt, vv, linewidth = 2, color = 'red') |
| 16 | |
| 17 | show() |