|
From: | Songsong Gee |
Subject: | Re: [Discuss-gnuradio] How can I skip N ites for each input? |
Date: | Thu, 25 Nov 2010 21:41:16 +0900 |
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
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |