I'm trying to set the size of a waveform window while using Ocean to run Monte Carlo analyses. I run the Monte Carlo analyses and call the histogram function to plot my scalar values. I often have more than one scalar value in a single waveform window. I then call hardCopy() to save the existing waveform window as .png image file to my hard drive. All of this works great, except for the fact that I cannot change the size of the waveform window.
I found solution number 11089214. I attempted to do what it said but I had no luck. For example, I modified my .oceanrc file to include the code in solution number 11089214. I then opened ocean and on the terminal I typed "newWindow()". A new waveform window appeared but it had not been resized at all. I even added a print statement in my .oceanrc file to make sure the new code was getting called. I've tried a few other things but nothing has worked. Does anyone have any idea what I could do to fix this problem?
I'm using WaveScan version 22.214.171.1240.5128 on Red Hat Linux. Thanks for your help.
Since this post, I've tried a few other things that didn't seem to change the default size, width by height (in pixels), of the wavescan window. My monitor is 1680 pixels by 1050 pixels. My .oceanrc file has the following set up:
;Begin .oceanrcload "abMakeWaveform.il"load "abStats.il"simulator('spectre)ocnWaveformTool('wavescan)envSetVal("wavescan.graphFrame" "width" 'string "1000")envSetVal("wavescan.graphFrame" "height" 'string "1000");End .oceanrcNote that whenever I call newWindow(), histogram(), or plot(); a wavescan window appears in the lower left hand corner on my screen. The width and height are each approximately 550 pixels. I don't seem to have this problem when I use wavescan directly in cadence with analog design environment because each wavescan window is placed in the center of the screen.
The reason why this is important to me is because I'm trying to fit six histograms onto a wavescan window that is ~ 550 pixels by 550 pixels and then save that to an image. When I go to view that image, the histograms are barely visible and the mean and sigma values cannot be read. I'm trying to do this in code so I don't have to do it manually. If I can resize the wavescan window in code, it will be much easier for me to automate this analysis.
Also note that I ssh onto a remote machine when running the ocean analysis. Could this cause any problems? Thanks for your help.
In reply to EricBohannon:
I found solution number 11169494 and it solved my problem. Basically, you call:
awvResizeWindow(awvGetCurrentWindow() list(200:200 1000:700))
to resize the window. Pretty simple. Thanks for the great site.