Functions to control waveform viewer via Ocean

R

Return Loss

Guest
Hi,

I'm trying to control the appearance of plots generated from an ocean
script like so:

window_id1 = newWindow()
awvDisableRedraw( window_id1 nil )
addTitle( "PSRR" )
...
<simulation runs and other stuff>
...
currentWindow( window_id1 )
plot( psrr_dB ?expr list(myLabel) )


This works but I would like better control over the appearance of the
plot. For example adding grids, control the plotting line style,
setting axis limits and so on. This should be possible with functions
similar to awvDisableRedraw().

I just can't seem to find the required functions in any of the online
manuals. Any pointers?
 
"Return" == Return Loss <ggu@oticon-dot-dk.no-spam.invalid> writes:
Return> Date: Tue, 12 Apr 2005 04:02:57 -0500

Return> Hi,

Return> I'm trying to control the appearance of plots generated
Return> from an ocean script like so:

Return> window_id1 = newWindow() awvDisableRedraw( window_id1 nil
Return> ) addTitle( "PSRR" ) ... <simulation runs and other
Return> stuff> ... currentWindow( window_id1 ) plot( psrr_dB
Return> ?expr list(myLabel) )


Return> This works but I would like better control over the
Return> appearance of the plot. For example adding grids, control
Return> the plotting line style, setting axis limits and so
Return> on. This should be possible with functions similar to
Return> awvDisableRedraw().

add grids => (awvDisplayGrids window_id1 t)
set line style => (awvPlotWaveform window_id1 psrr_dB ?expr '(myLabel) ...)
etc.
etc.

Look at the Analog Design Environment Skill Reference
in <cds_root>/doc/skartistref/skartistrefTOC.html

Satya


--
Remove XXX and YYY to get my address
 
Satya Mishra wrote:

Look at the Analog Design Environment Skill Reference
in  <cds_root>/doc/skartistref/skartistrefTOC.html
I also recommend the white paper "Functional verification of a differential
operational amplifier" off the Cadence.com home page. It got a couple of
good help functions for creating plots from ocean.

--
Svenn
 
On Tue, 12 Apr 2005 04:02:57 -0500, ggu@oticon-dot-dk.no-spam.invalid (Return
Loss) wrote:

Hi,

I'm trying to control the appearance of plots generated from an ocean
script like so:

window_id1 = newWindow()
awvDisableRedraw( window_id1 nil )
addTitle( "PSRR" )
..
simulation runs and other stuff
..
currentWindow( window_id1 )
plot( psrr_dB ?expr list(myLabel) )


This works but I would like better control over the appearance of the
plot. For example adding grids, control the plotting line style,
setting axis limits and so on. This should be possible with functions
similar to awvDisableRedraw().

I just can't seem to find the required functions in any of the online
manuals. Any pointers?
ocnHelp() will give you information. Look in the OCEAN manual
in cdsdoc.

xLimit(), yLimit(), plotStyle() displayMode(), awvLogXAxis(), awvLogYAxis()
amongst others.

graphicsOn()/graphicsOff() are the OCEAN functions for enabling/disabling
redraw.

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top