G
Gerd
Guest
Hi,
I'm trying to create a symbol view that's usable for 2 transistor
models, named X and Y. To do this i started modifying a CDF file which
i dumped from an existing symbol. The idea is to be able to specify
which model i want when doing 'Add->Instance' in the Composer window.
This is working fine, and with the callback routine 'EvaluateStuff()' i
can alter other parameters depending on the choice i click.
cdfCreateParam( cdfId
?name "ModelName"
?prompt "Model name"
?defValue "X"
?choices '("X" "Y")
?type "radio"
?callback "EvaluateStuff()"
)
cdfCreateParam( cdfId
?name "A"
?display "cdfgData->ModelName->value==\"X\""
...
)
cdfCreateParam( cdfId
?name "B"
?display "cdfgData->ModelName->value==\"Y\""
...
)
I also have two parameters A and B which need to be activated when,
respectively, X or Y is selected.
Now, what is not working is changing the A and B label values attached
to the symbol after it has been instantiated.
cdfId->paramLabelSet = "-ModelName W L ..."
The dots should be A or B, depending on parameter ModelName.
(there are 4 cdsParam() labels specified in the symbol view)
I tried the following:
if(cdfFindParamByName(cdfId "ModelName")~>value == "X"
then
cdfId->paramLabelSet = "-ModelName W L A"
else
cdfId->paramLabelSet = "-ModelName W L B"
)
but it does not work on the schematic.
When i specify 5 labels and enter this, both A and B are displayed
simultaneously, but it isn't really what i want...
cdfId->paramLabelSet = "-ModelName W L A B"
Is it even possible to do something like this?
(what i can't seem to force is to specify 'cdfId->paramLabelSet' from
the callback routine 'EvaluateStuff()'...)
Any help is very much appreciated!
Gerd.
I'm trying to create a symbol view that's usable for 2 transistor
models, named X and Y. To do this i started modifying a CDF file which
i dumped from an existing symbol. The idea is to be able to specify
which model i want when doing 'Add->Instance' in the Composer window.
This is working fine, and with the callback routine 'EvaluateStuff()' i
can alter other parameters depending on the choice i click.
cdfCreateParam( cdfId
?name "ModelName"
?prompt "Model name"
?defValue "X"
?choices '("X" "Y")
?type "radio"
?callback "EvaluateStuff()"
)
cdfCreateParam( cdfId
?name "A"
?display "cdfgData->ModelName->value==\"X\""
...
)
cdfCreateParam( cdfId
?name "B"
?display "cdfgData->ModelName->value==\"Y\""
...
)
I also have two parameters A and B which need to be activated when,
respectively, X or Y is selected.
Now, what is not working is changing the A and B label values attached
to the symbol after it has been instantiated.
cdfId->paramLabelSet = "-ModelName W L ..."
The dots should be A or B, depending on parameter ModelName.
(there are 4 cdsParam() labels specified in the symbol view)
I tried the following:
if(cdfFindParamByName(cdfId "ModelName")~>value == "X"
then
cdfId->paramLabelSet = "-ModelName W L A"
else
cdfId->paramLabelSet = "-ModelName W L B"
)
but it does not work on the schematic.
When i specify 5 labels and enter this, both A and B are displayed
simultaneously, but it isn't really what i want...
cdfId->paramLabelSet = "-ModelName W L A B"
Is it even possible to do something like this?
(what i can't seem to force is to specify 'cdfId->paramLabelSet' from
the callback routine 'EvaluateStuff()'...)
Any help is very much appreciated!
Gerd.