Re: GRC:Suitable Sink required

Hi,
It appears that gr.message_sink and gr.msg_queues are for digital data.
but my flowgraph (periodogram) is for analog samples,

complex baseband samples from usrp → stream to vector (vectors of
fft_size) → FFT
 → complex to mag squared → (sink or block to be determined)

Is their no choice other than file sink?

Thanks

Â

— On Mon, 4/20/09, Josh B. [email protected] wrote:

From: Josh B. [email protected]
Subject: Re: [Discuss-gnuradio] GRC:Suitable Sink required
To: “Saleem A.” [email protected]
Cc: [email protected]
Date: Monday, April 20, 2009, 4:37 AM

You can use a file sink to write the samples out to a file, and write
some program to process the file.

Or, you need to create your own block in c++ or python. If c++, the “how
to write a block example” is a good reference. If python, the wxgui
sinks are a good reference (see gr.message_sink and gr.msg_queues to get
data out of the stream and into
python).

-Josh

-----Inline Attachment Follows-----

If you want to extract samples from a gnuradio data stream and process
them in python, you should make a hierarchical block with a message sink
inside. The wxgui blocks are all great examples for this.

Try
http://gnuradio.org/trac/browser/gnuradio/trunk/gr-wxgui/src/python/fftsink_gl.py

-Josh