# Vector sink

**URL:** <https://www.ruby-forum.com/t/vector-sink/209108>\
**Category:** GNU Radio\
**Created:** [July 6, 2011, 1:51am UTC](https://www.ruby-forum.com/t/vector-sink/209108 "2011-07-06T01:51:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 6, 2011, 1:51am UTC](https://www.ruby-forum.com/t/vector-sink/209108/1 "2011-07-06T01:51:52Z")

</div>

What’s the intended usage for a “Vector Sink”? I have the output vector  
(after complex-to-mag, and IIR filtering) of an FFT, and I want to  
pick out specfic subsets of bins, and do stuff with them.

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [July 6, 2011, 4:38am UTC](https://www.ruby-forum.com/t/vector-sink/209108/2 "2011-07-06T04:38:26Z")

</div>

On Tue, Jul 5, 2011 at 7:50 PM, Marcus D. Leech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> What’s the intended usage for a “Vector Sink”? I have the output vector  
> (after complex-to-mag, and IIR filtering) of an FFT, and I want to  
> pick out specfic subsets of bins, and do stuff with them.
> 
> –  
> Marcus L.  
> Principal Investigator  
> Shirleys Bay Radio Astronomy Consortium  
> [http://www.sbrac.org](http://www.sbrac.org)

The vector sinks are not meant for “production” code, but for simple  
tests  
scripts. If you need to continuously get data out of a flow graph, the  
best  
approach is to use a message sink and have a thread that reads the  
message  
queue until another message is posted, then you do what you want with  
the  
returned data from there.

This is how we get data out of the digital modulation examples.

Tom

---

<div class="post-metadata">

**Author:** ![Marcus\_DSLeech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Post date:** [July 6, 2011, 4:40am UTC](https://www.ruby-forum.com/t/vector-sink/209108/3 "2011-07-06T04:40:17Z")

</div>

> The vector sinks are not meant for “production” code, but for simple  
> tests scripts. If you need to continuously get data out of a flow  
> graph, the best approach is to use a message sink and have a thread  
> that reads the message queue until another message is posted, then you  
> do what you want with the returned data from there.
> 
> This is how we get data out of the digital modulation examples.
> 
> Tom  
> Thanks, Tom. I figured this out a little while ago.

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.
