discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How can I skip N ites for each input?


From: Josh Blum
Subject: Re: [Discuss-gnuradio] How can I skip N ites for each input?
Date: Thu, 25 Nov 2010 00:50:54 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

There is a block called keep one in n. Is that what you are looking for?

http://gnuradio.org/doc/doxygen/classgr__keep__one__in__n.html

-Josh

On 11/24/2010 11:39 PM, Songsong Gee wrote:
I know there is a block 'Skip Head'

When I use it, however, I don't think that it works as I expected
I expected that like this:

Suppose a sequence 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0
(one 1, seven 0's and repeat forever)
I want to take just '1' for EVERY time
So I place and connect 'Skip Head' block and set 'Num items' 7, which means
it skips first 7 items.

In fact, as my guess and experiment, it just skips the very first 7 items!
In short, I have 800 items and use 'Skip Head' with 7 skips,
it passes 793 items. I expected 100 items! (800 / (7 + 1))




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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