The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> using OCEAN to controll waveform color
https://designers-guide.org/forum/YaBB.pl?num=1167426108

Message started by makelo on Dec 29th, 2006, 1:01pm

Title: using OCEAN to controll waveform color
Post by makelo on Dec 29th, 2006, 1:01pm

I using OCEAN to develop a testbench.  Although ADE allows one to change the color of a waveform I cannot find any information in the documentation or on this list for changing waveform colors via a script.  I like to maintain color consitensy for waveform A versus waveform B graphs.  This is especially useful when comparing new designs against old design results.  My code is below.

Thanks,
Makelo

graphicsOff()
plot( v("/clk") v("/Q") ?yNumber list(1 2) ?expr list( "Clk" "Q"))
Qmax=ymax( v("/Q"))+.1
Qmin=ymin( v("/Q"))-.1
displayMode("strip")
addSubwindowTitle( "Transient")
yLimit( list(Qmin Qmax) ?stripNumber 2)
addSubwindow()
graphicsOn()
plot(dft(i("/V7/PLUS") 6n 30n 1024 "Rectangular") ?expr list("I(Clk)") )
xLimit( list(-1e8 5e9))
addSubwindowTitle( "Frequency")
printf("Max Q is %L\n" Qmax)

Title: Re: using OCEAN to controll waveform color
Post by Andrew Beckett on Jan 12th, 2007, 5:55am

You'd need to use the awvPlotWaveform() function instead of plot() to specify the colours. See the documentation on this function for more details.

Not every argument is propagated to the simpler plot() function, in order to make it simpler  ;)

Regards,

Andrew.

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