Forum: GNU Radio disconnecting in a running flow graph

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
141689c528c5212754cbead4acd52b46?d=identicon&s=25 Josh Blum (Guest)
on 2007-05-27 01:20
(Received via mailing list)

I am interested in breaking a connection inside a running flow graph. I
have tried to narrow down the problem in a simple example, but I cannot
get the disconnect call to have any effect.

The example below should make a beep, silence, beep:


import time
from gnuradio import gr
from gnuradio import audio

fg = gr.flow_graph()

src = gr.sig_source_f(32000, gr.GR_SIN_WAVE, 350, .5, 0)
sink = audio.sink(32000)

fg.connect(src, sink)


fg.disconnect(src, sink)

fg.connect(src, sink)



What I am doing wrong?

Maybe I misunderstood the conclusion from the "rearranging a running
flow graph" email. It seemed to me that all blocks (including
hier_blocks2) but not hier_blocks could be disconnected.

This topic is locked and can not be replied to.