Display/Hide parameters from an XML Files

Hi All,

I am writing some blocks and I need help in XML file.
1- I have a drop down menu and I want the chosen option to be displayed
on
the block.
2- I have an integer parameter that is by default displayed on the block
but
I want to hide it.

In my current file I wrote:

Equation
option
1
int
#if $option() == ‘True’ then ‘none’ else ‘part’#

First Order 1 Second Order 2 Third Order 3
<name>N</name>

N
4
int

(for some reason the param and /param tags may be hidden in my message)

So I mean I want to display the equation order on the block and hide N.

Any workarounds, please?

Cheers,

Zohair

View this message in context:
http://old.nabble.com/Display-Hide-parameters-from-an-XML-Files-tp29313876p29313876.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On 07/31/2010 09:32 AM, Zohair wrote:

Equation
option
1
int
#if $option() == ‘True’ then ‘none’ else ‘part’#

True is not in the list of options, and the type is int.

$option() == 1

-Josh

What if I want to hide/show input ports? For example my block may
receive 1,2
or 3 input with different vlen and I want the user to be able to choose
the
number of ports and they are automatically shown/hidden. I don’t want to
use
the nports tag for two reasons:

1- I want to label the ports with different labels.
2- ports will have different vlen.

I tried the hide tag but it doesn’t seem to be designed to work for
ports.

Cheers,
Zohair

View this message in context:
http://old.nabble.com/Display-Hide-parameters-from-an-XML-Files-tp29313876p29397060.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Ports dont have a hide capability, but you can make their connections
optional. See float to complex, complex to float blocks for an example.

-josh