• 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. Modifying the ADE Assembler "Open MATLAB" command

Stats

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

Modifying the ADE Assembler "Open MATLAB" command

Ricardo1
Ricardo1 over 1 year ago

Hello

Currently, when I click on "Open MATLAB" via the ADE Assembler, another matlab version is opened (an older version that doesn't support Mixed-Signal Analyzer).

I can fix this if I had a way to modify the command that Cadence executes to launch a newer matlab version (I just need to point to the correct MATLAB version that I have).

I suspect "Open MATLAB" simply executes "matlab" through a terminal... but I have a separate command that launches a more modern version 

thanks in advance

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    The mechanism is finds "matlab" from your path rather than giving another configuration mechanism. Since this is the standard way of finding executables, why not fix your $PATH to ensure that the correct version is found first? Or add a wrapper (if you can't change the path, which seems a bit odd) called "matlab" which exists earlier in the path that executes the one you want?

    It would seem unnecessarily complicated to add a way to change the command that is launched (we actually run axlMatlab which sets up a few things and then runs the actual matlab from $PATH).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Ricardo1
    Ricardo1 over 1 year ago in reply to Andrew Beckett

    Thank you Andrew, the short answer to your question is that the system path for "matlab" is fixed to an older version of MATLAB (there are other users in the same server that require it). If I launch system("matlab") through CIW, it indeed opens up the older version.

    This usually isn't an issue since I can type a separate command on terminal that points to another path. I currently alias "matlab" to the command for the newer matlab, but unfortunately it seems like ADE doesn't see this. 

    Is it at all possible to somehow change environment in .cdsinit or something?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago in reply to Ricardo1

    You could add:

    setShellEnvVar("PATH" strcat("/path/to/directory/for/newer/matlab:" getShellEnvVar("PATH"))

    in your .cdsinit. This means that when "matlab" is launched from Virtuoso, it will look first in the additional directory that you've prefixed onto $PATH.

    Andrew

    • 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