Stream_to_vector and numpy vectors

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?

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