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,
> Kevin
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to