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.
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.