As said, your use case is not one for reconfiguration. Best regards, Marcus
On Tue, 2019-10-22 at 12:18 +0200, Thabet GHARBI wrote: > Hi Marcus, > > Thanks for the tip. > > In this case, what type of conditions to use to reconfigure a flowgraph > (connect/disconnect blocks)? > In GNU Radio usage manual, the only example given is time condition > "time.sleep(0.01)" > https://www.gnuradio.org/doc/doxygen/page_operating_fg.html > > Best Regards, > > > Le lun. 21 oct. 2019 à 13:22, Müller, Marcus (CEL) <muel...@kit.edu> a écrit : > > Hello! > > > > Re: 1 > > > > That's not how GNU Radio should be used, and thus, it's impossible to > > do that, architecturally. Connecting blocks pretty much has non- > > deterministic behaviour w.r.t. to buffer state, and also, without the > > block connected, your flow graph probably wouldn't be properly > > connected and couldn't even start! > > > > 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. > > > > Re: 2 > > > > Hier blocks shouldn't be involved in signal processing. So, although > > it's generally possible to make a hier block a message acceptor, it's > > rarely a good idea. > > > > Best regards, > > Marcus > > > > > > On Mon, 2019-10-21 at 10:52 +0200, Thabet GHARBI wrote: > > > Hello, > > > > > > I'm writing a hierarchical block in C++, in which I instantiate 3 custom > > > (hier)blocks. > > > I want to start Block1 only, and depending on the value of one of its > > > attributes (which changes during processing), disconnect it, and connect > > > either block2 or block3, > > > > > > 1- What's the simplest way to do this? > > > 2- In case we use "message passing", is it possible to interpret the > > > message at hierarchical block level? > > > > > > Thanks in advance. > > > > > > Best Regards, > > > _______________________________________________ > > > Discuss-gnuradio mailing list > > > Discuss-gnuradio@gnu.org > > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio