korvin011 / ADS-Matlab-Interface

Keysight Advanced Design System (ADS) to Matlab interface
GNU General Public License v3.0
35 stars 12 forks source link

Cannot run simulation. The exit code is 1 #21

Open davidmalcor opened 2 days ago

davidmalcor commented 2 days ago

I am obtaining this error when introducing 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

I have seen the same issue in different posts altough I cant access the Keysight website to look for a solution when setting up the environment variables.

korvin011 commented 2 days ago

Try to setup the environmental variables that are shown in this video: https://www.youtube.com/watch?v=DlzflpUIaY8. I would recommend the set them manually and "permanently" (for Windows, see e.g. sec. 2.4 here), and then restart Matlab or other app that uses them.

P.S. When the variables are correctly set, running hpeesofsim in command line (or system('hpeesofsim.exe') in Matlab) should produce the output like this:

hpeesofsim (*) 550.shp Jul 24 2021, MINT version 5 (64-bit windows built: Sat Jul 24, 2021 16:09:49 +0000)

Error detected by hpeesofsim. No input circuit specified.

hpeesofsim terminated due to an error.

davidmalcor commented 2 days ago

Try to setup the environmental variables that are shown in this video: https://www.youtube.com/watch?v=DlzflpUIaY8. I would recommend the set them manually and "permanently" (for Windows, see e.g. sec. 2.4 here), and then restart Matlab or other app that uses them.

P.S. When the variables are correctly set, running hpeesofsim in command line (or system('hpeesofsim.exe') in Matlab) should produce the output like this:

hpeesofsim (*) 550.shp Jul 24 2021, MINT version 5 (64-bit windows built: Sat Jul 24, 2021 16:09:49 +0000)

Error detected by hpeesofsim. No input circuit specified.

hpeesofsim terminated due to an error.

Many thanks for your quick reply. The problem is that I do not have access to this link, so I am not able to copy the commands: https://edadocs.software.keysight.com/eesofkcads/ads-command-line-simulation-on-64-bit-windows-654133585.html

Could you please post here which are the specific commands in order to include them permanently as environment variables?

korvin011 commented 1 day ago

All variables are visible in the Youtube video. Here are the copy from the link above:

REM Save this script as adssim532.bat REM Update ADS_LICENSE_FILE and ADS installation directory accordingly! set ADS_LICENSE_FILE=27001@my.company.com set "HPEESOF_DIR=C:\Program Files\Keysight\ADS2021_Update2" set TIBURON_HOME=%HPEESOF_DIR%\tiburonda set SIMARCH=win32_64 set PATH=%HPEESOF_DIR%\bin;%HPEESOF_DIR%\lib\%SIMARCH%;%HPEESOF_DIR%\circuit\lib.%SIMARCH%;%HPEESOF_DIR%\adsptolemy\lib.%SIMARCH%;%PATH%;.

davidmalcor commented 1 day ago

Many thanks!