Code Monkey home page Code Monkey logo

Comments (7)

korvin011 avatar korvin011 commented on July 2, 2024

Hi,

Indeed, this is because of wrongly set PATH. By default, the interface does not modify the system PATH, but only locally for the MATLAB session.

There is a known issue when you try to set a path like ADSInstallationDir = 'C:\Program Files\Keysight\ADS2017\' (with the backslash at the end). Did you do that in the first place?
Please check that you don't have the backslash at the end of the path and restart MATLAB, so it clears previously-stored environmental variables.

As another, permanent solution, you can set the required environmental variables manually in Windows. List of them you can find in ADS documentation, or inside the source code of the interface.

from ads-matlab-interface.

yu586sjc avatar yu586sjc commented on July 2, 2024

Hi Oleg,

Thanks for your reply. I do not have a backslash at the end.
image

I set the environmental variables manually as you suggested.
%HPEESOF_DIR%\bin%SIMARCH%;%HPEESOF_DIR%\bin;%HPEESOF_DIR%\lib%SIMARCH%;%HPEESOF_DIR%\circuit\lib.%SIMARCH%;%HPEESOF_DIR%\adsptolemy\lib.%SIMARCH%;%PATH%;

Now the command

system('hpeesofsim.exe')

gives -1.0737e+09.

However, I still have an error in ADS.RunSimulation(). The message is

Error using TADSInterface/RunSimulation (line 2072)
Cannot run simulation. The exit code is 1

Please advice. Thank you so much!

from ads-matlab-interface.

yu586sjc avatar yu586sjc commented on July 2, 2024

Hi again,

I was able to run hpeesofsim in cmd using instruction in https://edadocs.software.keysight.com/eesofkcads/ads-command-line-simulation-on-64-bit-windows-654133585.html

but when I went back to run hpeesofsim in Matlab I had the following error.

system('hpeesofsim.exe')

hpeesofsim (*) 470.shp Oct 16 2017, MINT version 4
(64-bit windows built: Tue Oct 17, 2017 04:23:43 +0000)
Copyright 1989 - 2017 Keysight Technologies.

***** Warning: Unable to locate environment value for AEL_PATH *****
Using default value of "."

***** Warning: Unable to locate environment value for HPEESOFSIM_AEL *****
Using default value of "hpeesofsim"
WARNING AEL0056 hpeesofsim: AEL file not found
*** FATAL ERROR: Unable to load default AEL personality ***

ans =

 1

And I still cannot run ADS.RunSimulation();

from ads-matlab-interface.

yu586sjc avatar yu586sjc commented on July 2, 2024

My workaround is to use a batch file to replace ADS.RunSimulation(). It would be useful if this issue can be resolved. Thanks!

from ads-matlab-interface.

yorkliu228 avatar yorkliu228 commented on July 2, 2024

Hi again,

I was able to run hpeesofsim in cmd using instruction in https://edadocs.software.keysight.com/eesofkcads/ads-command-line-simulation-on-64-bit-windows-654133585.html

but when I went back to run hpeesofsim in Matlab I had the following error.

system('hpeesofsim.exe')

hpeesofsim (*) 470.shp Oct 16 2017, MINT version 4 (64-bit windows built: Tue Oct 17, 2017 04:23:43 +0000) Copyright 1989 - 2017 Keysight Technologies.

***** Warning: Unable to locate environment value for AEL_PATH ***** Using default value of "."

***** Warning: Unable to locate environment value for HPEESOFSIM_AEL ***** Using default value of "hpeesofsim" WARNING AEL0056 hpeesofsim: AEL file not found *** FATAL ERROR: Unable to load default AEL personality ***

ans =

 1

And I still cannot run ADS.RunSimulation();

Hello yu586sjc
Looks like you are trying to use this interface in ADS2021. I also meet the same issue. My solution is setting the Win10 env according to https://edadocs.software.keysight.com/eesofkcads/ads-command-line-simulation-on-64-bit-windows-654133585.html.

from ads-matlab-interface.

korvin011 avatar korvin011 commented on July 2, 2024

Hi yorkliu228,
Thank you for sharing!

from ads-matlab-interface.

zhaojiadei avatar zhaojiadei commented on July 2, 2024

Hello,

I am able to run the demo for reading data, but I have trouble running the second demo. I run system('hpeesofsim.exe') as suggested by Oleg. Below is my error message:

============================================

system('hpeesofsim.exe')

HPEESOF_DIR is set to an invalid directory. ""C:\Program Files\Keysight\ADS2017"\bin" does not exist. Error setting up command line: HPEESOF_DIR is set to an invalid directory. ""C:\Program Files\Keysight\ADS2017"\bin" does not exist. hpeesofsim (*) 531.update1.1 Dec 12 2020, MINT version 5 (64-bit windows built: Sat Dec 12, 2020 05:23:54 +0000)

*** Warning: Unable to locate environment value for AEL_PATH *** Using default value of "."

*** Warning: Unable to locate environment value for HPEESOFSIM_AEL *** Using default value of "hpeesofsim" WARNING AEL file: "hpeesofsim" not found.*** FATAL ERROR: Unable to load default AEL personality *

ans = 1

===========================================================

It looks like the path string did not append properly, as evident by ""C:\Program Files\Keysight\ADS2017"\bin" I set the path as below

ADSInstallationDir = 'C:\Program Files\Keysight\ADS2017'; ADS.SetADSPaths(ADSInstallationDir);

It works fine for the read demo, but not for the simulation demo. I am using Matlab 2020b.

Ok, I have the same problem and solved it. Change the line 1485: EnvVarValue = ['"' EnvVarValue '"'] to EnvVarValue = string(EnvVarValue).
Hope work.

from ads-matlab-interface.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.