Comments (7)
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.
Hi Oleg,
Thanks for your reply. I do not have a backslash at the end.
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.
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.
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.
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.
Hi yorkliu228,
Thank you for sharing!
from ads-matlab-interface.
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)
- i have a problem about this interface HOT 5
- I have a problem HOT 3
- I have a problem
- Cannot run simulation. The exit code is 1 HOT 2
- RunOptimizer HOT 1
- Error in integration_mat_ADS (line 22) ADS.RunSimulation(); HOT 3
- Unable to access the library "XXX" HOT 2
- Error using assert (exit code 1) line2080 HOT 1
- Issue exit code 120
- Running ADS from Matlab Error HOT 2
- Private methods not defined HOT 2
- Hi,i want to have a new need HOT 6
- I have a problem about this interface HOT 1
- I have a problem for this interface HOT 1
- problem for Keysight Advanced Design System (ADS) to Matlab interface
- Cannot run simulation: HPEESOF_DIR is set to an invalid directory HOT 2
- Linux version support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ads-matlab-interface.