Re: GRC:Suitable Sink required


On Mon, 4/20/09, Saleem A. [email protected] wrote:
It appears that gr.message_sink and gr…msg_queues are for
digital data. but my flowgraph (periodogram) is for analog

This is not true (see:

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?


You can use vector sink.


dst = gr.vector_sink_f()

then you can see the data in this vector by:


Of course you have to run the graph for a while then stop it before
doing the print.

See :[email protected]/msg13693.html



Ahh, no vector sink. The vector sink will queue up samples forever, and
although you can clear the buffer, you will not stay vector aligned with
the fft size.

Vector sink is good for the QA code with a finite number of samples in
and out, but i would definitely not recommend it for dealing with live

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs