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 > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
