• 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 SKILL
  3. skill code to toggle waveform visibility

Stats

  • Locked Locked
  • Replies 12
  • Subscribers 144
  • Views 17542
  • 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

skill code to toggle waveform visibility

drdanmc
drdanmc over 8 years ago

Hello,

I've found that it is not all that uncommon for me to have a simulation set up in ADE-L  (or ocean) that plots a moderate number of waveforms.  Often I find that the first thing I do is make them all invisible and then toggle on a few at a time.  I'd love it if I could set up a hot key or menu item that iterates over each waveform displayed in the current window and makes them invisible.

I've not really had any luck in digging through the manual to try and find any functions that give me access to the displayed traces and the ability to turn on/off visibility.  Does anyone have an example of accessing those objects that they could share?

Thanks in advance.

-Dan

  • Cancel
Parents
  • fatcat1206
    fatcat1206 over 8 years ago
    Hi Dan

    I did some search, and quite lucky find an API to hide/show the waveform. It's:

    awvSetWaveformDisplayStatus(
    w_windowId
    x_waveIndex
    g_enable
    [ ?subwindow x_subwindow ]
    )
    => t / nil

    you may use "awvGetCurrentWindow()" to get the waveform w_windowId;
    and use "awvGetWaveNameList(w_windowId)" to have a list which contains the "x_waveIndex" for all the waveforms in the current window.
    and then "g_enable" is used to control show(t)/hide(nil) the waveform.

    I give it for a try, it works.

    You still need to find the APIs to get the waveIndex for the selected waveforms.
    According to my colleagues' script, it's feasible. (I did not check the source code, but his script interacts with the selected waveforms)

    Good luck.

    Best Regards

    Yi
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • fatcat1206
    fatcat1206 over 8 years ago
    Hi Dan

    I did some search, and quite lucky find an API to hide/show the waveform. It's:

    awvSetWaveformDisplayStatus(
    w_windowId
    x_waveIndex
    g_enable
    [ ?subwindow x_subwindow ]
    )
    => t / nil

    you may use "awvGetCurrentWindow()" to get the waveform w_windowId;
    and use "awvGetWaveNameList(w_windowId)" to have a list which contains the "x_waveIndex" for all the waveforms in the current window.
    and then "g_enable" is used to control show(t)/hide(nil) the waveform.

    I give it for a try, it works.

    You still need to find the APIs to get the waveIndex for the selected waveforms.
    According to my colleagues' script, it's feasible. (I did not check the source code, but his script interacts with the selected waveforms)

    Good luck.

    Best Regards

    Yi
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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