Hi Thabet, you can call these functions from anywhere. In GNU Radio's current state, I'd however recommend you don't, for the same reasons I discussed two weeks ago:
On Mon, 2019-10-21 at 11:22 +0000, Müller, Marcus (CEL) wrote: > Connecting blocks pretty much has non- > deterministic behaviour w.r.t. to buffer state, [...] > Instead, have a block (not a hier block) that outputs items according > to some state. Often, it's easy to transport state transitions as > stream tags. Best regards, Marcus On Mon, 2019-11-04 at 14:32 +0100, Thabet GHARBI wrote: > Hello, > > I'm interested in reconfiguring the flowgraph of my app at runtime. > I see that there is a set of functions to do that: start/stop, lock/unlock, > connect/disconnect > https://www.gnuradio.org/doc/doxygen/page_operating_fg.html > > I have 2 questions about this: > 1- Is it possible to use these functions in an hiearchical block or just only > at top_block level? > 2- What type of conditions to use to reconfigure a flowgraph? the only > example given is time condition "time.sleep(0.01)". > > Thanks. > > Best Regards,
smime.p7s
Description: S/MIME cryptographic signature