get_attr()

Gets a data attribute. This function only works with frequency swept variables

Syntax
y = get_attr(data, "attr_name", eval)

Arguments
Name Description Range Type Default Required
data frequency swept variable (-∞, ∞) integer, real, complex   yes
attr_name name of the attribute   string   yes
eval specifies whether to evaluate the attribute false|true boolean true no

Examples

y = get_attr(data, "fc", true)
returns 10GHz
y = get_attr(data, "dataType")
returns "TimedData"
y = get_attr(data, "TraceType", false)
returns "Spectral"

Defined in

Built in

See Also

set_attr()

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources