Print the waveform with its title

T

Tao Chen

Guest
Hi,

I am trying to print some waveforms with Ocean scripts. After plotting
the curves, I add a title to it with the command addTitle("some
title").

Then I print the figure with the following commands:
hardCopyOptions(?hcOutputFile "wv.png")
awvSetOptionValue("hcHeader" nil)
awvSetOptionValue("hcMailLogNames" nil)
hardCopy(winhdl)

where "winhdl" is the window handler of my figure.

Now the problem is, I cannot see the title of the figure added by
"addTitle" command in the .png file that I get. This happens on Ocean
6. There is no such a problem with Ocean 5. Any suggestion would be
appreciated.

Regards,
Tao
 
Hi Tao,

I'd rather go for 'addSubwindowTitle' with wavescan.
there is an example (IC 5141):

; Ocean Script starts here
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design( "MyPathToDesign")
resultsDir( "MyPathToResultsDir" )
modelFile(
'("MyModelFile.scs" "typ")
)
analysis('tran ?stop "0.5u" )
desVar( "VDD" 2 )
temp( 25 )
run()
selectResult( 'tran )
plot(getData("/VIN") getData("/VOUT") )
;
addSubwindowTitle("Inverter transient Simulation")
hardCopyOptions(?hcOutputFile "inverter.png")
hardCopy()
; Ocean Script ends here
 
Hi Tao,

I'd rather go for 'addSubwindowTitle' with wavescan.
there is an example (IC 5141):

; Ocean Script starts here
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design( "MyPathToDesign")
resultsDir( "MyPathToResultsDir" )
modelFile(
'("MyModelFile.scs" "typ")
)
analysis('tran ?stop "0.5u" )
desVar( "VDD" 2 )
temp( 25 )
run()
selectResult( 'tran )
plot(getData("/VIN") getData("/VOUT") )
;
addSubwindowTitle("Inverter transient Simulation")
hardCopyOptions(?hcOutputFile "inverter.png")
hardCopy()
; Ocean Script ends here

Cheers,
Riad.
 

Welcome to EDABoard.com

Sponsor

Back
Top