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