The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Using ADE-L & OCEAN to measure minimum value of AC wave
https://designers-guide.org/forum/YaBB.pl?num=1398272298

Message started by koren on Apr 23rd, 2014, 9:58am

Title: Using ADE-L & OCEAN to measure minimum value of AC wave
Post by koren on Apr 23rd, 2014, 9:58am

Hello all.
I am trying to measure minimum of an AC response, on Cadence ADE-L.
I use this function:  xmin( VF("/I0/PLUS" ) 1 )
I get no value displayed, even though, I can easily find it using plot. There is no error/warning message in the CIW.
The waveform does exist. If use a different waveform name, I do get an error, that xmin cannot get nil as first value...
What am I doing wrong?

Title: Re: Using ADE-L & OCEAN to measure minimum value of AC wave
Post by Andrew Beckett on Apr 26th, 2014, 12:19am

This is because the results of an AC simulation are complex numbers - you get a waveform of these complex values versus frequency. Because they are complex, it allows you to find the mag, phase, real, or imag of the waveform. When you plot VF() without any modifiers, it plots the magnitude automatically.

However, the xmin, ymin functions etc do not make the same assumption. Instead they don't know which minimum you are talking about - and just return nil. So if you want the x value for the minimum magnitude, do:

xmin(mag(VF("/I0/PLUS" )) 1 )

Regards,

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.