The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 16th, 2024, 10:29pm
Pages: 1
Send Topic Print
using OCEAN to controll waveform color (Read 2227 times)
makelo
Community Member
***
Offline



Posts: 34
Hillsboro, OR
using OCEAN to controll waveform color
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)
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: using OCEAN to controll waveform color
Reply #1 - 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.
Back to top
 
 
View Profile WWW   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.