import expeyes.eyesj as ej # import the driver module
from pylab import *        # import the plotting routines

p=ej.open()                # p = pointer to the driver
# measuring 1000 voltage values from analog input A1
# wait 2000 microseconds (2 milliseconds) between
# consecutive measurements
t,v = p.capture(1,1000,2000)

plot(t,v)                  # plots voltage versus time
show()                     # go to interactive mode
