[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] stream_to_vector and numpy vectors
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] stream_to_vector and numpy vectors |
Date: |
Wed, 29 May 2013 15:20:23 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
On 05/29/2013 02:31 PM, vegihat vegihat wrote:
> hello, i want to write a simple energy detector without using c++, only
> existence blocks and the numpy lib
>
> So far, i have the following graph
>
> usrp_source -> head -> stream_to_vector
>
> could i read the values from stream_to_vector and write them to a
> numpy-vector? is it possible?
>
Yes. Rather than use the stream to vector, create a python block. This
block's work function will get called with the sample data from head as
a numpy array.
-josh
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>