[Top][All Lists]

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

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

From: Kevin Lee
Subject: [Discuss-gnuradio] Calling a function after every N samples
Date: Thu, 13 Jun 2019 14:18:59 -0400

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,

reply via email to

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