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