discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] How the valve block works


From: Patrick Strasser
Subject: [Discuss-gnuradio] How the valve block works
Date: Sat, 08 Jan 2011 01:13:13 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050602 Thunderbird/1.0.2 Mnenhy/0.7.2.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

I'm trying to implement an application with GNU Radio Companion that
incorporates different branches. For example I have a Wav source and a
signal source and I want to switch between them. Or I want to hear the
signal at socertain points in the flow graph. The old way was to use a
variable chooser, const multipliers for muting of paths and adders. The
downside of this system is that all the paths continue to run
concurrently. I do not use the muted paths, but they still consume
processing power.

Now I found the valve block, and the doc says: Connect output to input
when valve is closed (not open).
I expected the valve to block when input is not connected to output. I
thougth the flow graph would starve/block on that path. In consequence
the path would not consume processing power. Now it seems - referring to
Josh's message from 2010-05-06 [1] - that down the path from the valve
indeed starving happens, but the null sink in the valve happily
consumes, keeping the producers running.

I thought about replacing the null sink with something blocking. This
would for sure work with otherwise unconnected sources, like when
choosing between different sources. But I'm not sure what happens if the
path splits before the valve. Would the blocking be propagated back over
the split or be limited to the path with the valve?

Maybe I'm just on the wrong track and there is some other simple
solution for this problem.

Regards

Patrick

[1] http://article.gmane.org/gmane.comp.gnu.radio.general/26777
- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0nrBYACgkQ/G6gHctkMa/WtQCfV6z15+BrBgPa12X/WCoCphXt
jqUAn0fSxmm94i/OS/FXKa/cC1E0cX8e
=Jn5p
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]