Bypass work function

I have following flowgraph:

usrp_source—>>probe_mag_squared_block---->block2—>block3

What I want to do is that I want to bypass the “work” function of block2
when the threshold level of probe_mag_squared reaches. I do not want to
stop(), lock(), disconnect the flow graph. Is this possible using stream
tags, or message passing etc ? Any example code would be nice.

People, any ideas on it?


Bob

Bob,

Saw this the other day, but there isn’t a lot to go on here. If block2
is your own, you can make it do the bypass. You can also use some of the
logic blocks and a multiplier depending on what you’re doing. There
isn’t really a concept of on-the-fly switching in GNU Radio.

  • Jeff