Print the waveform with its title

Discussion in 'Cadence' started by Tao Chen, May 7, 2009.

  1. Tao Chen

    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
     
    Tao Chen, May 7, 2009
    #1
  2. Tao Chen

    Riad KACED Guest

    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
     
    Riad KACED, May 7, 2009
    #2
  3. Tao Chen

    Riad KACED Guest

    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.
     
    Riad KACED, May 7, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.