access_data()
Datafile dependents lookup or interpolation function
Syntax
access_data(AccessType, DataSetVar, Ivar1, IValue1, Ivar2, Ivalue2, ...)
Arguments
| Name | Description | Range | Type | Required |
|---|---|---|---|---|
| AccessType | Type of access to data | [0-6]† | integer, string | yes |
| DataSetVar | Dataset variable that points to dataset that has been accessed | dataset variable | yes | |
| Ivar1, Ivar2,. | Independent variable to be accessed | string, integer | no | |
| Ivalue1, Ivalue2, . | Independent variable value to be accessed | integer, real, complex, string | no | |
| †alternately use [linear, spline, cubic, index_lookup, value_lookup, ceil_value_lookup, floor_value_lookup]. | ||||
Examples
In this example, it is assumed that the dataset spar.ds contains S-parameters at two frequencies, 1 and 2 GHz.
dsS11 = dsexpr("S(1,1)", "spar.ds")
returns the S(1,1) dataset variable
adV0 = access_data("linear", dsS11, "freq", 1.5 GHz)
returns linearly interpolated S11 at 1.5 GHz
adV3 = access_data(3, dsS11, "freq", 1)
returns S11 at 2 GHz
adV4 = access_data(4, dsS11, "freq", 1 GHz)
returns S11 at 1 GHz
adV5 = access_data(5, dsS11, "freq", 1.9 GHz)
returns S11at 2 GHz
adV6 = access_data(6, dsS11, "freq", 1.1 GHz)
returns S11at 1 GHz
See Also
Notes/Equations
The access_data() function is used to access the dependent data of a specific type from a dataset. The accessed data can then be used in the design as a parameter value or in other simulation expressions. The data can be accessed either by interpolation or lookup. The access type choices are:
| Access Type | Description |
|---|---|
| 0 or linear | access data by linear interpolation |
| 1 or spline | access data by spline interpolation |
| 2 or cubic | access data by cubic interpolation |
| 3 or index_lookup | access data by index value truncation, average of end indices if midway |
| 4 or value_lookup | access data by value - nearest value, average of end points if midway |
| 5 or ceil_value_lookup | access data by nearest value not less than given value, except maximum of value for value greater than maximum value |
| 6 or floor_value_lookup | access data by nearest value not greater than given value, except minimum of value for value less than minimum value |
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()