Tuesday, July 21, 2026

Re: GRC file sink/source name does not honor variables

Re: GRC file sink/source name does not honor variables

On 2026-07-21 12:58, Eugene Grayver wrote:
The GRC file sink/source filename does not support variable expansion.  Is this an intentional decision or a bug?

Eugene Grayver, Ph.D.
Principal Engineer
310-336-1274
I've used full-on python expressions in there in the past, so, if that's no longer working, it's a bug.


GRC file sink/source name does not honor variables

The GRC file sink/source filename does not support variable expansion.  Is this an intentional decision or a bug?

Eugene Grayver, Ph.D.
Principal Engineer
310-336-1274

Function probe block id

Function probe block id checks for a valid Python variable name.  However, it should allow a block.sub_block notation to support accessing blocks inside hierarchical blocks.  This would be a trivial change.

Eugene Grayver, Ph.D.
Principal Engineer
310-336-1274

function probes don't work in hierarchical blocks

Functions probes don't work in hierarchical blocks. 
A function probe generates a thread body such as:

-------
        def _cross_freq_estimate_probe():
          self.flowgraph_started.wait()
          while True:

            val = self.cross_freq_probe.level()
-------

However, hierarchical blocks don't have a member flowgraph_started.  I don't have a simple suggestion, but perhaps we can pass this member from the parent?  A bit ugly!  Makes the hier blocks dependent on the rest of the GRC framework — i.e. can't easily reuse in python-only design flow.


Eugene Grayver, Ph.D.
Principal Engineer
310-336-1274

Friday, July 17, 2026

Re: code snippet in hierarchical block

Hey Eugene, Thanks for pointing that out! I converted that to an issue report, so we don't lose track of it: https://github.com/gnuradio/gnuradio/issues/8163 Best regards, Marcus On 2026-07-17 12:49 AM, Eugene Grayver wrote: > Code snippet 'Main - After Init' does not work in hierarchical blocks.  The functions are > correctly created at the top of the file *but are never called* in the code body.  This > seems like a simple issue to fix (sorry I can't contribute). > > Eugene Grayver, Ph.D. > Principal Engineer > 310-336-1274

Thursday, July 16, 2026

code snippet in hierarchical block

Code snippet 'Main - After Init' does not work in hierarchical blocks.  The functions are correctly created at the top of the file but are never called in the code body.  This seems like a simple issue to fix (sorry I can't contribute).

Eugene Grayver, Ph.D.
Principal Engineer
310-336-1274