Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ADS - about function- dbpolar()

Status
Not open for further replies.

xidian123

Junior Member level 2
Joined
Dec 9, 2008
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
China
Activity points
1,408
Hi ,I met a strange problem. Why the dbpolar() is not valid in my design ?All other function are OK~As pho below~
Is there any one met the same problem ?

BTW,how to display this point, 0.23/14 (dB/ang) ,on the smith chart ????

thanks very much~~
 

"dbpolar()" is not available as "Measurement Expressions", although it is available as "Simulator Expressions".

See the followings.
http://edocs.soco.agilent.com/display/ads2009/Measurement+Expressions
http://edocs.soco.agilent.com/display/ads2009/Simulator+Expressions

Use "A1=10**(0.2872/20.0)*exp(j*14*pi/180.0)" instead of "A1=dbpolar(0.2872, 14)".

Or use "A1=polar(10**(0.2872/20.0), 14)"

Of course you can define your "dbpolar()" function which is available as Measurement Expressions.

Save following as "$HOME/hpeesof/expressions/ael/dbpolar.ael"

defun dbpolar(dBX, Angle_deg)
{
return 10**(dBX/20.0) * exp(j*Angle_deg*pi/180.0);
}

or

defun dbpolar(dBX, Angle_deg)
{
return polar(10**(dBX/20.0), Angle_deg);
}


And add load("dbpolar"); in the following.
"$HOME/hpeesof/expressions/ael/user_defined_fun.ael"

Then restart ADS.
 

    xidian123

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top