Hello Robert,

Thank you very much for the fast reply. I am new to electronics so could
you please tell me what pru is? Thanks


On Wed, Dec 3, 2014 at 2:53 PM, Robert Nelson <robertcnel...@gmail.com>
wrote:

> On Wed, Dec 3, 2014 at 1:49 PM, Vitali Coltuclu <russ...@gmail.com> wrote:
> > Hello Everyone,
> >
> > I am trying to build a sensor using Beaglebone Black (BBB) and Python
> and I
> > would like to get as many data points as possible from the sensor. Using
> the
> > code below, I get around 120 000 points per second.
> >
> > import Adafruit_BBIO_GPIO as GPIO
> > import time
> >
> > GPIO.setup("P8_11", GPIO.IN)
> >
> > def get_data(n):
> >     start_time = time.time()
> >     my_list = [GPIO.input("P8_11") for i in range(n)]
> >     end_time = time.time() - start_time
> >     print "Time: {}".format(end-time)
> >     return my_list
> >
> > n = 120000
> > get_data(n)
> >
> > I am wondering if it is possible to speed up BBB, ideally to get the
> rate of
> > 1 MHz. What are the options to do that?
>
> If your just reading a gpio pin, use the pru...
>
> Regards,
>
> --
> Robert Nelson
> http://www.rcn-ee.com/
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/P4Syb8hIPOg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to