[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] GRC:Suitable Sink required
From: |
Firas Abbas |
Subject: |
Re: [Discuss-gnuradio] GRC:Suitable Sink required |
Date: |
Mon, 20 Apr 2009 02:30:05 -0700 (PDT) |
Hi,
> On Mon, 4/20/09, Saleem Akhtar <address@hidden> wrote:
> Hi,
> It appears that gr.message_sink and gr..msg_queues are for
> digital data. but my flowgraph (periodogram) is for analog
> samples,
This is not true (see: usrp_spectrum_sense.py).
> 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
You can use vector sink.
ex:
dst = gr.vector_sink_f()
then you can see the data in this vector by:
print dst.data()
Of course you have to run the graph for a while then stop it before doing the
print.
See :
http://www.mail-archive.com/address@hidden/msg13693.html
BR
Firas