• 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. Plotting generated waveforms in the same subwindow as simulated...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 15045
  • 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

Plotting generated waveforms in the same subwindow as simulated waveforms

CADcasualty
CADcasualty over 7 years ago

I have an ocean script that runs a transient simulation and then creates a waveform using artListToWaveform() that I want to overlay onto the waveform of interest. Frustratingly, when I plot the two waveforms they always end up in two different subwindows. I can plot any number of waveforms from the simulation into the same subwindow, but the created artListToWaveform() waveform simply won't plot in the same subwindow as the "real" waveforms. The x-axis limits for the generated waveform are the same as the real waveforms. Any ideas?

  • Cancel
  • CADcasualty
    CADcasualty over 7 years ago

    So I've found the cause of the problem - the generated waveform doesn't have any units and therefore viva plots it in a different subwindow. However, if you right click on the x-axis and select Allow Any Units then both waveforms will plot on the same axes :-). You can configure viva ahead of time by putting the following into your .cdsinit:

    envSetVal("viva.indepAxis" "flexible" 'string "true")

    If you enter the above command into the CIW then viva's original behavior persists until you open up a new plot window. 

    So now I guess I'm all set, but I can also ask a follow up question - can I set the independent axis units of my generated waveform to be in seconds?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to CADcasualty

    See abSetUnits and abSetXUnits in this article. Ah, looks like I've posted the code to the forums too - here.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • CADcasualty
    CADcasualty over 7 years ago in reply to Andrew Beckett

    These solved all of my problems! I don't even need to bother with the solutions I posted earlier in the thread. Thanks so much!!

    • 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