The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> plotStyle() isn't valid for Cadence Wavescan.
https://designers-guide.org/forum/YaBB.pl?num=1216429016

Message started by pancho_hideboo on Jul 18th, 2008, 5:56pm

Title: plotStyle() isn't valid for Cadence Wavescan.
Post by pancho_hideboo on Jul 18th, 2008, 5:56pm

Hi.

Spectrum is plotted with bar style automatically in Cadence Wavecan,
so I would like to change its style to "joined" using skill or ocean function.

I use plotStyle( ’joined ) for this purpose in Cadence AWD.
But this plotStyle() isn't valid for Cadence Wavescan.

What function is available for changing plot style in Cadence Wavescan ?

Title: Re: plotStyle() isn't valid for Cadence Wavescan.
Post by pancho_hideboo on Nov 28th, 2008, 8:15pm

Any expert of Cadence Tool.
Teach me if any idea.

Title: Re: plotStyle() isn't valid for Cadence Wavescan.
Post by Andrew Beckett on Jan 2nd, 2009, 8:47am

Huh?

plotStyle() is supported when wavescan is the waveform tool. I knew this worked, but I just checked, in case it had broken and I'd not noticed... well, it work correctly.

The only downside is that wavescan supports more modes than AWD did, and they're not all available via plotStyle() (I think I have a CCR for this), but in general that's not a big problem.

Regards,

Andrew.

Title: Re: plotStyle() isn't valid for Cadence Wavescan.
Post by pancho_hideboo on Jan 6th, 2009, 8:18pm


Andrew Beckett wrote on Jan 2nd, 2009, 8:47am:
plotStyle() is supported when wavescan is the waveform tool. I knew this worked,

Still plotStyle('joined) doesn't work.
Attached figure is Wavescan.


Quote:
;ocnWaveformTool('awd)
ocnWaveformTool('wavescan)

awvSetOptionValue('dateStamp t)
awvSetOptionValue('displayGrids t)
awvSetOptionValue("cursorPrecision" 9)
awvSetOptionValue("displayAxesBy125" t)
pi = acos(-1.0)
date = getCurrentTime()

Title = "Confirmation of plotStyle()"

wid = newWindow()
addTitle(Title)
bid = currentSubwindow(1)

base_dir = "./"

sim_data = "qpss_hb3.raw"
openResults( strcat(base_dir, "/", sim_data) )
selectResult("qpss_fd")
Vif=getData("Pif")
plot( db20(Vif) ?expr '("Spectre") )
plotStyle('joined)
;plotStyle('bar)

yLimit( list(-100, 0) )
awvSetXAxisLabel(wid "frequency [Hz]"  ?subwindow bid)
awvSetYAxisLabel(wid 1 "Vif [dBV]" ?subwindow bid)


Title: Re: plotStyle() isn't valid for Cadence Wavescan.
Post by pancho_hideboo on Jan 6th, 2009, 8:22pm

Attached figure is AWD.
In this case, plotStyle('joined) does work.

Title: Re: plotStyle() isn't valid for Cadence Wavescan.
Post by Andrew Beckett on Jan 6th, 2009, 11:08pm

I'll look into this and get back to you. It worked when I tried it before I posted - so I'll see if I can repeat your problem, and understand why it happens...

Regards,

Andrew.

Title: Re: plotStyle() isn't valid for Cadence Wavescan.
Post by Andrew Beckett on Jan 7th, 2009, 9:40am

It seems that there's a bug - it doesn't allow you to set it to joined if the waveform being plotted already has the plotStyle set to "bar". This will be true of some waveforms coming from simulation, but not all - which is why it worked for me, but didn't work for Pancho Hideboo.

I'll file a CCR for this.

In the meantime, if you do this:


Code:
Vif=getData("Pif")
Vif->plotStyle='joined ; could be set to nil too
plot( db20(Vif) ?expr '("Spectre") )


in your code, it will then work.

This workaround works regardless of using wavescan or AWD.

Regards,

Andrew.

Title: Re: plotStyle() isn't valid for Cadence Wavescan.
Post by pancho_hideboo on Jan 7th, 2009, 4:28pm


Andrew Beckett wrote on Jan 7th, 2009, 9:40am:
Vif=getData("Pif")
Vif->plotStyle='joined ; could be set to nil too
plot( db20(Vif) ?expr '("Spectre") )

Thanks. This can work.

Title: Re: plotStyle() isn't valid for Cadence Wavescan.
Post by Andrew Beckett on Jan 8th, 2009, 9:59am

I filed CCR number 628706 for this.

Regards,

Andrew.

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