[Top][All Lists]

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

Re: [Discuss-gnuradio] Calling a function after every N samples

From: Michael Dickens
Subject: Re: [Discuss-gnuradio] Calling a function after every N samples
Date: Thu, 13 Jun 2019 16:32:59 -0400
User-agent: Cyrus-JMAP/3.1.6-663-gf46ad30-fmstable-20190607v1

Hi Kevin - Maybe use the tagged_stream or a PDU or vectorized data? There are various ways to do what you want that will guarantee N samples that you could then trigger a function call on. The better one to use really depends on what you actually want to do once you have your N samples. - MLD

On Thu, Jun 13, 2019, at 3:32 PM, Kevin Lee wrote:
Hello all,

I'm working on a project that requires that I synchronously issue a command to the sink I wrote after processing every "N" samples. In my reading, I came to the understanding that a good way to do this would be to use tagged streams or PDUs with message passing. I've read through the Guided Tutorial Programming Topics page, so I have a basic understanding of the above concepts. Adding a tag every N samples is simple enough but I'm struggling on figuring out how to get a block to send a message as a reaction to a sample being processed, since GR blocks work in groups of samples and the 'get_tags_in_*' functions can only return tags in ranges, so that rules out tags, and message passing uses asynchronous timers. If anyone can offer any insight that would be greatly appreciated. 

Thanks for your help,
Discuss-gnuradio mailing list

reply via email to

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