discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Consuming block of data in python block


From: maiconkist
Subject: [Discuss-gnuradio] Consuming block of data in python block
Date: Mon, 28 Jan 2013 17:40:54 -0800 (PST)

Hi list,

I'm trying to implement my first GNURadio block in python.

I followed the how_to_square_ff tutorial.

In that block, each input generates an output. Now what I want is to change
this behavior so that the how_to_square_ff receives a block of data (512 for
example) and output only a single value (I know it is strange, but is only
for learning purpose).

How I declare this in my block ?
Now the declaration is  as follow:

                gr.sync_block.__init__(
                                self,
                                name = "my_block",
                                in_sig =  [numpy.float32], # Input signature: 1 
float at a time (want
512)
                                out_sig = [numpy.float32], # Output signature: 
1 float at a time
                                )

Thanks



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Consuming-block-of-data-in-python-block-tp39244.html
Sent from the GnuRadio mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]