db_get_parm_attribute()
Returns an attribute of a parameter.
Syntax:
db_get_parm_attribute(parmHandle, parmAttribute [ ,index]);
where
parmHandle is the handle to a parameter.
parmAttribute is the data for the parameter, where:
- PARM_VALUE_CODE = Type of parameter, where
- 0 = no value
- 1,2 = double
- 3,4 = parameter list
- 5,7 = string
- 6 = no value, but form name is important
- PARM_NAME = Name of parameter
- PARM_FORM_NAME = Name of the parameter form
- PARM_NUM_DVALS = Number of double(real) values 0-3
- PARM_VALUE_DVALUE = Real value
- PARM_VALUE_SVALUE = String value (set if var reference)
- PARM_VALUE_LIST = List of parameters
- PARM_NO_PLOT = Flag indicating parameter visibility. Parameters are owned by instances. A parameter has a name and a value. The value can be a string, an array of 1-3 doubles or a further list of parameters. For example, in W=3, there is one dvalue (3); in W=gain, there is one svalue (gain). The value code indicates what the value type is. If the value is a double, the PARM_NUM_DVALS indicates how many make up the value; for example, constrained optimization has 3 dvalues (min, max and nominal). For complex values, it is often necessary to look up the form name and then the form definition to determine how the value is represented in the data base. The AEL function format_instance_data() can convert complex parameter values into strings.
index is optional. If attribute is PARM_VALUE_DVALUE, the index can be 0, 1, or 2 to retrieve first, second, or third real value. If the index is not given, the first real value is returned.
Example:
decl pHandle = db_first_parm(instHandle); decl fname = db_get_parm_attribute(pHandle, PARM_FORM_NAME);
Download Example File:
The following link(s) lead to the Agilent EEsof EDA Knowledge center website. You will need to register at this site with a valid support contract to download an example file.
Export a Modelcrad to a MDIF File
Get MeasEqn String 2
Get Variable String 2
Where Used:
Schematic, Layout
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()