• 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. frequency sweep variable - ocean script

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 1889
  • 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

frequency sweep variable - ocean script

C4n0s4
C4n0s4 over 14 years ago
Hi! Im trying to plot the inductance vs frequency using ocean. The problem is that i cant find the variable frequency. I tried "frequency" , "freq", ... What is the name of variable reponsible for the frequency sweep? my code: Y11_re = real(yp(1 1 ?result "sp")) Y11_im = imag(yp(1 1 ?result "sp")) L_ind = (1/Y11_im)*(2*pi*frequency) '( "L" ) ) Best regards Canosa
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Use frequency=xval(sp(1 1 ?result "sp"))  - this will get the x-axis from your s11 - which will be the frequency axis. So if you then include that in your calculation, it should do what you want.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • C4n0s4
    C4n0s4 over 14 years ago
    Tanks a lot Andrew! I was able to put it on... Now im, just having one problem... i want to put the L and Q at the same subwindow. But two axes, at left and right side of the subwindow. It's that possible? Until now im calling two plot functions separated, one for each parameter. But how to put the right axes? Thanks again Canosa
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • C4n0s4
    C4n0s4 over 14 years ago
    I have managed to buid the plots. Thanks a lot
    • 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