Forum: GNU Radio stream_to_vector and numpy vectors

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3149e6dc85a56c6d5bba78fa958996c0?d=identicon&s=25 vegihat vegihat (vegihat)
on 2013-05-29 21:32
(Received via mailing list)
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?
4252201ac30d6dd44d8090ce1070e35f?d=identicon&s=25 Josh Blum (Guest)
on 2013-05-29 22:21
(Received via mailing list)
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
This topic is locked and can not be replied to.