discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] optional port in grc block


From: Martin Braun
Subject: Re: [Discuss-gnuradio] optional port in grc block
Date: Sun, 04 Jan 2015 11:17:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Achilleas,

ports can use the <hide> tag like params do (note this tag is the last
tag for any sink or source). Just put some Cheetah code in there to
check for $debug and set hide to all, part or none.

M

On 01/02/2015 07:24 PM, Achilleas Anastasopoulos wrote:
> Hi all,
> 
> I would like to have grc block with a bool option "Debug".
> Once this is set to True, then I would like to have an additional output
> port.
> 
> How do I do that?
> 
> I already added this part in the xml file:
> 
> <param>
>                 <name>Debug</name>
>                 <key>debug</key>
>                 <value>False</value>
>                 <type>bool</type>
>  </param>
> 
> but now I don't know how to use this variable to make the additional
> port appear
> in the block.
> 
> 
> thanks
> Achilleas
> 
> 
> -
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 




reply via email to

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