discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] gnuradio-companion: set value to None


From: Josh Blum
Subject: Re: [Discuss-gnuradio] gnuradio-companion: set value to None
Date: Mon, 02 Apr 2012 09:30:34 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2


On 04/02/2012 09:16 AM, wayne roberts wrote:
> For example, when there is    if tau is not None: in fm_demod.py, and you
> want to put None for tau in gnuradio-companion "FM Demod" block, what do
> you put into the properties dialog for FM demod block?
> 
> If I want no filtering of any kind..
> I also wonder about another block for FM demod, perhaps Quadrature demod
> block?
> 
> 

2 thoughts on this

Maybe it would be a good idea in general for grc param entries to simply
accept None. That is, bypass the whole type checking when "x is None".

Also, perhaps a simple patch is in order, then set tau to zero. I assume
thats out of the acceptable range:

diff --git a/grc/blocks/blks2_fm_demod_cf.xml
b/grc/blocks/blks2_fm_demod_cf.xml
index 2ce1fb9..89b5d23 100644
--- a/grc/blocks/blks2_fm_demod_cf.xml
+++ b/grc/blocks/blks2_fm_demod_cf.xml
@@ -15,7 +15,9 @@
        audio_pass=$audio_pass,
        audio_stop=$audio_stop,
        gain=$gain,
+#if $tau()
        tau=$tau,
+#end if
 )</make>
        <param>
                <name>Channel Rate</name>


-josh



reply via email to

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