The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 26th, 2024, 12:18pm
Pages: 1
Send Topic Print
how to plot a curve versus a parameter in Wavescan? (Read 3626 times)
rf_man
Junior Member
**
Offline



Posts: 28

how to plot a curve versus a parameter in Wavescan?
Jun 24th, 2008, 8:29am
 
How to plot a curve in wavescan versus a desired parameter in Wavescan? Just like in ADS, one can plot a curve versus almost anything easily, but how do you do that in Cadence's Wavescan?
e.g. plot collector current versus the variation of VCE?
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: how to plot a curve versus a parameter in Wavescan?
Reply #1 - Jun 24th, 2008, 10:57pm
 
rf_man wrote on Jun 24th, 2008, 8:29am:
How to plot a curve in wavescan versus a desired parameter in Wavescan? Just like in ADS, one can plot a curve versus almost anything easily, but how do you do that in Cadence's Wavescan?
e.g. plot collector current versus the variation of VCE?

If number of independent variables is two like your example, you can easily plot Ic[Ib, Vce] using Direct Plot, here independent variables are Ib and Vce.

But if there are more than three independent variables, plotting graph you desire in Cadence ADE is not so friendly compared to Agilent ADS.

You have to invoke skill(ocean) functions like following.

    sweepNames()  <-- this is similar to what() function in ADS.
    sweepVarValues()
    value()

About these functions, see skill finder.


Examples
  selectResult('ac)
  sweepNames()
  Returns   ("rc" "freq")
  sweepVarValues("rc")
  Returns   (900.0 950.0 1000.0 1050.0 1100.0)

 sweepVarValues("freq")
 Returns   (1000.0 1096.478 1202.264 1318.257 1445.44
                 1584.893 1737.801 1905.461 2089.296 2290.868
                 2511.886 2754.229 3019.952 3311.311 3630.781
                 3981.072 4365.158 4786.301 5248.075 5754.399
                 6309.573 6918.31 7585.776 8317.638 9120.108
                 10000.0)

 sweepNames(?result 'dc)
 Returns   ("rc" "re")

; sweepNames() --> ("timeindex" "freq")
time_list = sweepVarValues("timeindex");
n_time = length( time_list );
fprintf(stderr, "n_time=%d\n", n_time);
Root_Noise_PSD = getData("out");  /*  [Vrms/sqrt(Hz)]  */
t0 = nth(0, time_list);
vn_f = value(Root_Noise_PSD, "timeindex", t0);
plot(vn_f);
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.