Changing the x-axis variable in the ADE waveform using OCEAN

J

Jon Josephson

Guest
Inserito da http://www.forumsforyou.com/p/comp.cad.cadence/
I have written several scripts that can open up results, plot them, and then save the waveforms to a postScript file without any problems (yes, automation is nice), but I haven't figured out how to change the x-axis from the independent variable to a waveform, as is possible using the gui under Axes->x-axis->Plot vs. Does anyone know the SKILL code thaty would be involved in doing this? I woudl rahter not have to mess around with awvPlotWaveform if I don't have to. Just looking for a quick, easy solution.

Thanks,
Jon

----------------------------------------
Inviato dal servizio gratuito http://www.forumsforyou.com
RSS e notizie associate.Provalo anche tu
Segnala gli abusi ad abuse@forumsforyou.com




----------------------------------------
 
Jon Josephson wrote:
I have written several scripts that can open up results, plot them, and then save the waveforms to a postScript file without any problems (yes, automation is nice), but I haven't figured out how to change the x-axis from the independent variable to a waveform, as is possible using the gui under Axes->x-axis->Plot vs. Does anyone know the SKILL code thaty would be involved in doing this? I woudl rahter not have to mess around with awvPlotWaveform if I don't have to. Just looking for a quick, easy solution.
Have you had a look at the ocnYvsYPlot function?

--
Svenn
 
Inserito da http://www.forumsforyou.com/p/comp.cad.cadence/
I am not familiar with that command, ocnYvsYPlot, and it doesn't come up on my cdsDoc. Can you post useage instructions?

Thanks,
Jon

----------------------------------------
Inviato dal servizio gratuito http://www.forumsforyou.com
RSS e notizie associate.Provalo anche tu
Segnala gli abusi ad abuse@forumsforyou.com




----------------------------------------
 
Which DFII version did you use

form cdsdoc 5.1.41
OCEAN Reference, Chapter 8, Plotting and Printing Commands

ocnYvsYPlot

ocnYvsYPlot([?wavex o_wavex ?wavey o_wavey] [?exprx o_exprx ?expry o_expry]
[?title l_titleList] [?color l_colorList])
=> wave/nil

Description

Plots a wave against another wave or an expression against another expression.

This is currently supported for a family of waveforms generated from simple
parametric simulation results data. It is not supported for a family of
waveforms generated from parametric simulation with paramset, Corners or
MonteCarlo results data.
Arguments

o_wavex
Reference wave against which the wave provided needs to be plotted.

o_wavey
Wave to be plotted against the reference wave.

o_exprx
Reference expression against which the expression provided needs to be
plotted.

o_expry
Expression to be plotted against the reference expression.

l_titleList
List of waveform titles. If the waveform is simple, only one label will be
required. If the waveform is param, a list of labels needs to be provided.

l_colorList
List of waveform colors. If the waveform is simple, only one color will be
required. If the waveform is param, a list of colors needs to be provided.

Value Returned

wave
Returns the waveform specified.

nil
Returns nil if the plot could not be generated.

Examples

wy = VT("/vout")

wx = VT("/vin")

ex = "VT('/vin')"

ey = "VT('/vout')"

ocnYvsYplot(?wavex wx ?wavey wy ?titleList '("simpleWave") ?colorList '(3))

Plots wave wy against wave wx with the title being simpleWave and the color being 3.

ocnYvsYplot(?exprx ex ?expry ey ?titleList '("simpleWave") ?colorList '(3))

Plots expression ey against expression ex with the title being simpleWave and
the color being 3.



Jon Josephson wrote:
Inserito da http://www.forumsforyou.com/p/comp.cad.cadence/

I am not familiar with that command, ocnYvsYPlot, and it doesn't come up on my cdsDoc. Can you post useage instructions?

Thanks,
Jon

----------------------------------------
Inviato dal servizio gratuito http://www.forumsforyou.com
RSS e notizie associate.Provalo anche tu
Segnala gli abusi ad abuse@forumsforyou.com




----------------------------------------
 
Inserito da http://www.forumsforyou.com/p/comp.cad.cadence/
I was looking at an older version of cdsDoc.

Thank you very much!! This was EXACTLY what I was looking for.

Jon

----------------------------------------
Inviato dal servizio gratuito http://www.forumsforyou.com
RSS e notizie associate.Provalo anche tu
Segnala gli abusi ad abuse@forumsforyou.com




----------------------------------------
 
On Fri, 11 Aug 2006 18:16:37 +0200, Jon Josephson <pantera_frii@yahoo.com>
wrote:

Inserito da http://www.forumsforyou.com/p/comp.cad.cadence/

I am not familiar with that command, ocnYvsYPlot, and it doesn't come up on my cdsDoc. Can you post useage instructions?

Thanks,
Jon

----------------------------------------
Inviato dal servizio gratuito http://www.forumsforyou.com
RSS e notizie associate.Provalo anche tu
Segnala gli abusi ad abuse@forumsforyou.com




----------------------------------------
If it's not in cdsdoc, then it's probably not available in the version you're
using. It's relatively recent.

Another alternative is to use something like this:

/*******************************************************************
* *
* (abChangeXAxis yVar xVar) *
* *
* Return a new waveform object with the x axis set to the y values *
* of the second argument. *
* *
*******************************************************************/

(procedure (abChangeXAxis yVar xVar)
(let (newWave)
(setq newWave (drCreateEmptyWaveform))
(drPutWaveformXVec newWave (drGetWaveformYVec xVar))
(if (eq (drGetWaveformXVec yVar) (drGetWaveformXVec xVar))
/* if the x axes are the same for both, it's simple */
(drPutWaveformYVec newWave (drGetWaveformYVec yVar))
/* otherwise need to use value() to interpolate */
(let (xVec yVec len)
(setq xVec (drGetWaveformXVec xVar))
(setq len (drVectorLength xVec))
(setq yVec (drCreateVec (drGetWaveformYType yVar) len))
(for ind 0 (sub1 len)
(drAddElem yVec (value yVar (drGetElem xVec ind)))
)
(drPutWaveformYVec newWave yVec)
)
)
newWave
)
)


Then you can do:

new=abChangeXAxis(yWave xWave)
plot(new)

Andrew.
--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 

Welcome to EDABoard.com

Sponsor

Back
Top