• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Ocean: Save waveforms to .png

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 128
  • Views 15693
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Ocean: Save waveforms to .png

coco009
coco009 over 16 years ago

Hi,

 

I have a quick question and would be very grateful for some help.

 

I have an ocean script testbench, which is creating various plots. At the end of the run, I wish to save the resulting waveforms. Currently, I have to manually go: 'File' -> 'Save as image' on the waveform window. Could somebody please inform me how to do this within ocean, i.e as a script so that I can automate this? Any help would be greatly appreciated.

 

 

Regards

 

coco009

  • Cancel
  • archive
    archive over 16 years ago

     After plotting use the hardCopy function: 

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

    Regards,

    Samir Jafferali 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • coco009
    coco009 over 16 years ago

    Dear Samir,

     

    Thanks for your very prompt reply. I knew it had to be something simple. I currently cant get it quite to work though, as I dont appear to have .cdsplotinit file. I have copied a sample file into the same locations as my .cdsinit file, but when plotting, I keep getting the error that there were no .cdsplotinit files found.

     

    Do you (or anyone else) know how to set up the .cdsplotinit file so that it will be picked up when I run the ocean script?

     

     

    Thanks very much again

     

    Regards

     

    coco009

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • coco009
    coco009 over 16 years ago

    Hi again,

     

    Following on from my previous post, I have actually found that all I have to do is drop the .cdsplotinit file into my home directory and that works fine in that I am no longer warned that the file cant be found and it loads the one in my home directory.

     

    The problem now is that although the printing to file appears to have taken place ... no warnings/errors, there is no resulting .png file.

     

    Anybody have any thoughts? Is there something specific required within the .cdsplotinit file to perform the plotting of the .png?

     

     

     

    Thanks in advance

     

    coco009

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • coco009
    coco009 over 16 years ago

    All sorted now!

    Thanks all for your help, particularly Samir!

     

     

    Regards

     

    coco009

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • bobbygang
    bobbygang over 14 years ago

    Hi, I'm new.

    I wrote a new post yesterday but I can't find it in forum until now so I write it here.

    I have similar question  of command "hardCopy".

    I wonder why I can't find the graph in the folder "zzz" after I set  hardCopyOptions(?hcTmpDir "/aaa/yyy/zzz") .

    I only can get the graph when I set  hardCopyOptions(?hcTmpDir "/aaa") .

    At first I think it  must be in root folder, but  I also can't get the graph when I set  hardCopyOptions(?hcTmpDir "/bbb") .

    Is there some requirement to the directory ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • swdesigner
    swdesigner over 13 years ago
    Is it possible to plot waveforms to a "virtual" waveform window and then capture that window to a JPG or PNG? That would be useful for batch mode.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • swdesigner
    swdesigner over 13 years ago

    Seems like

    > ocean -nograph

    makes this possible..

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information