Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5101

Plotting and Saving results as PNG

$
0
0

 Hi,

I am trying to write some code to plot a few eye diagrams and then save the result in a PNG file. I am using Cadence Version: "IC.6.1.5.500.11". What i have done is declared a variable in the outputs with the expression load("plotrand.ocn"). Inside the plotrand.ocn file, i have placed the following code. The results plot, the eye diagrams show up correctly, and they are in two subwindows just like i want it. However, when i say save the file, it only saves one of the subwindows. The PNG file does not include both of the subwindows as i want it. 

There are two other things i would like to do if possible!

1) To resize the window before saving the PNG file. I have tried the awvResizeWindow as well as "hiResizeWindow(awvGetCurrentWindow() list(0:0 1400:1050))" with no luck.

2) To remove the legend that is displayed on the side and make it display it on the "inside". This can be achieved through the menues, but i wanted to do it automatically. 

Thanks,

Shayan

Contents of "plotrand.ocn"

real ENDTIME = 0;
real STARTTIME = 0;
hardCopyOptions(?hcOutputFile "test3.png")
clearAll()

DFE_Eye = eyeDiagram(VT("/Veq_dfe") STARTTIME ENDTIME 3.3333e-10)
plot( DFE_Eye ?expr '( "DFE_Eye" ) )
yLimit( list(-400m 400m) ?stripNumber 1])

number = addSubwindow()
LinearEQ_Eye = eyeDiagram(VT("/Veq") STARTTIME ENDTIME 3.3333e-10)
plot( LinearEQ_Eye ?expr '( "LinearEQ_Eye" ) )
yLimit( list(-400m 400m) ?stripNumber 1])


hardCopyOptions(?hcOutputFile "test3.png")
hardCopy()


Viewing all articles
Browse latest Browse all 5101

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>