eyes17/code/fullwave.py
raw| 1 | from pylab import * |
| 2 | |
| 3 | p.set_sine(200) |
| 4 | |
| 5 | res = p.capture4(500, 20) # captures A1 and A2 |
| 6 | |
| 7 | xlabel('Time(mS)') |
| 8 | ylabel('Voltage(V)') |
| 9 | plot([0,10], [0,0], 'black') |
| 10 | ylim([-4,4]) |
| 11 | |
| 12 | plot(res[0], res[1], linewidth = 2, color = 'blue') |
| 13 | plot(res[2], res[3], linewidth = 2, color = 'red') |
| 14 | plot(res[4], res[5], linewidth = 2, color = 'magenta') |
| 15 | |
| 16 | show() |