Sunday, September 30, 2018

Re: [Discuss-gnuradio] Recording Probe Rate or other Messages

Hi David,

this would be an easy task for a four-lines-of-actual-code Python
block.

However, as much as I like GNU Radio (you'll find I like it a lot), is
this really a GNU Radio job? Your rate is proportional to the speed at
which your file is read, and you could do easy things like making a
named pipe (`man mkfifo`), use that in your file source and using `pv`
to feed that from a file, or something similar.

Best regards,
Marcus

On Thu, 2018-09-27 at 15:19 -0400, David Blake wrote:
> I have a flowgraph in which I can probe the rate using the "Probe
> Rate" block and I connect it to the "Message Debug" block as such:
>
> self.msg_connect((self.blocks_probe_rate_0, 'rate'),
> (self.blocks_message_debug_0, 'print'))
> self.connect((self.blocks_file_source_0, 0),
> (self.blocks_probe_rate_0, 0))
>
> Instead of sending the rate to the terminal to read, I would like to
> send it to a file for post processing. How can I do this in python?
> I'd also be fine getting the average rate over some time period and
> returning a single value.
>
> Thanks!
> _______________________________________________
> 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

No comments:

Post a Comment