Code Monkey home page Code Monkey logo

ads-matlab-interface's People

Contributors

korvin011 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ads-matlab-interface's Issues

Error using assert (exit code 1) line2080

Hi , i have a problem when i want run simulation .
the error is :
Error using assert
cannot run simulation. The exit code is 1
Error in TADSInterface/RunSimulation (line 2080)
assert(ExitCode==0, 'Cannot Run Simulation.The exit code is %g', ExitCode);

A problem of dsdump

When I use the method "ReadDataset(DatasetFile)" of the TADSInterface, I encountered a problem as follows:

Cannot dump the dataset file "E:\Java\UpperComputer\Java-Matlab-ADSCoSimulation\ADSProject\ACSimulation\data\ACSimulation.ds" using "dsdump".
The system message is:
"'dsdump' is not an internal or external command, nor is it a runnable program or batch file."

I have a problem about this interface

When i am using this interface, i find a problem about Function (Run simulation) :
Java exception occurred:
java.io.IOException: Cannot run program "hpeesofsim" (in directory
"C:\Users\13358\Desktop\korvin011-ADS-Matlab-Interface-8327d13\Demos\ADSProjects\MSFilter_2ParamSweep_wrk"): CreateProcess error=2, The system cannot find the specified file.

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the specified file.

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)

at java.lang.ProcessImpl.start(ProcessImpl.java:137)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

error TADSInterface/RunSimulation (line 2071)
ExitCode = TADSInterface.RunProcessAsync('hpeesofsim', {['"' NetlistName NetlistExt '"']}, NetlistPath, @ProcessOutputLine);

error Untitled (line 32)
ADS.RunSimulation();

Can you give me some advice about this?
Thank you!

Issue exit code 120

Hi,

I'm trying to run a sweep, and for a certain number of sweeps, it won't run the simulation, and there is a license error. Is there any line of code to release the license manually?

[ADS][11:36:25] Error detected by hpeesofsim during circuit set up.
[ADS][11:36:25] An appropriate license for linear features is not available. This
[ADS][11:36:25] feature must be licensed before it can be used.
[ADS][11:36:25] FlexLM error message:
[ADS][11:36:25] Linear Simulator
[ADS][11:36:25] Licensed number of users already reached for this feature
[ADS][11:36:25] Possible Causes:
[ADS][11:36:25] 1. All licenses for the requested feature are in use, further requests cannot be granted at this time.
[ADS][11:36:25] 2. A process not terminated properly still has the feature checked out.
[ADS][11:36:25] 3. A node-locked license was configured on a license server not intended for remote use.
[ADS][11:36:25] 4. An options file was set up where the exclusion or reservations list is preventing the license request.
[ADS][11:36:25] Troubleshooting Tips:
[ADS][11:36:25] 1. Use a different license server with available licenses for this feature.
[ADS][11:36:25] 2. Verify that you are connecting to a floating license server rather than a node-locked local server.
[ADS][11:36:25] 3. Verify that you are not on the exclude list of the options file set by your license administrator.
[ADS][11:36:25] 4. Consult your license administrator to verify that the license server is running a floating license.
[ADS][11:36:25] 5. Consult your license administrator or Keysight sales representative to obtain more licenses.
[ADS][11:36:25] 6. Use the License Manager's Usage tab to view the licenses currently in use and try again later when the feature becomes available.
[ADS][11:36:25] License Requested: b_pwad_inclusive

and sometimes I get a list of all the licenses required but if the sweep is for 40 points it runs ok last time stopped after 167 points and got a slightly different error

[ADS][13:51:34] Error detected by hpeesofsim during circuit set up.
[ADS][13:51:34] An attempt to use a nonlinear feature was made, and a valid
[ADS][13:51:34] nonlinear license is not available. This software is not licensed
[ADS][13:51:34] for use with nonlinear features. Only linear features can be used.
[ADS][13:51:34] FlexLM error message:
[ADS][13:51:34] Harmonc Balance Simulator
[ADS][13:51:34] Unexpected License Error
[ADS][13:51:34] Possible Causes:
[ADS][13:51:34] An unexplained error (16) occurred.
[ADS][13:51:34] Troubleshooting Tips:
[ADS][13:51:34] 1. Contact your license administrator or Keysight-EEsof Support for assistance.
[ADS][13:51:34] 2. Use a different license file or server with available licenses for this feature.
[ADS][13:51:34] License Requested: b_pwad_inclusive
[ADS][13:51:34] License path:
Error using assert
Cannot run simulation. The exit code is 120

Error in TADSInterface/RunSimulation (line 2083)
assert(ExitCode==0, 'Cannot run simulation. The exit code is %g', ExitCode);

Error in RunADS_XMA_V4_MVT2_2Port (line 205)
ADS.RunSimulation();

Thanks in advance

this is my code:

for fq_index = 1:length(f_q)
    ADS.RunSimulation();
    mat{fq_index,pq_index} = load([mat_path,'\MVT2.mat']);
    k = k+1;
    disp(['ADS: ',num2str(k),' / ', num2str(length(f_q))]);
end

Cannot run simulation. The exit code is 1

Hi Oleg

Thanks so much for this great Matlab function that you have prepared. In short it is amazing.

While the first demo, 'read and extract data set' works well, I have problem running the second demo.
When I run the code I get the following error:

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

Error in Demo3_changeparameter_and_run (line 27)
ADS.RunSimulation();**

I use:

  • Windows operating system
  • Matlab R2018b
  • ADS 2022 update 1

Do you know what is the problem and how I can resolve the issue?

PS: By the way I ran "system('hpeesofsim.exe')" in matlab and I got the following error/warning.

HPEESOF_DIR is set to an invalid directory. ""C:\Program Files\Keysight\ADS2022_update1"\bin" does not exist. Error setting up command line: HPEESOF_DIR is set to an invalid directory. ""C:\Program Files\Keysight\ADS2022_update1"\bin" does not exist.
hpeesofsim (*) 551.shp Oct 27 2021, MINT version 5
(64-bit windows built: Thu Oct 28, 2021 03:25:42 +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

Thanks in advance;

i have a problem about this interface

Hello,Mr.Oleg [Iupikov]
I have a problem. I can use this interface on some computers, but I found a problem when I used it on others computers. When using the Runsimulation() function, an error will be generated. The mistake is:
can not Run simulation.The exit code is 1
What I understand is that when calling the RunProcessAsync() function, there is a child process that has not ended, so the exit value is 1. This error causes this interface to not be widely used. I want to ask you how to solve this mistake.
Thank you very much!

HPEESOF_DIR is set to an invalid directory

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.

RunOptimizer

Hi Oleg

  • How can we run the optimizer using your function? is there any modification required for this purpose?

  • How can we extract the single independent variable using your code? (example: I have optimized a circuit component; call it R which is not a function of frequency or any other parameter; and I want to extract this single variable)
    I used another dummy variable to plugin as the second element of the "ADS.GetVariableAsFunction" and it worked but I want to know whether there is another way or not.

Thanks;

I have a problem

Hello,

I appreciate for the great code for me to run ADS via MATLAB.
Unfortunately, I try to follow the demo and have an issue at second demo.

My computer environments are follows: Win 10 / ADS 2021 / MATLAB R2021a

At the second demo, I got the error message as below.


Cannot run simulation "hpeesofsim "netlist.log"". The system message is:
Qt: Untested Windows version 10.0 detected!

hpeesofsim (*) 450.shp Jan 21 2016, MINT version 4
(64-bit windows built: 01/21/16 15:34:19)
Copyright 1995 - 2015 Keysight Technologies, 1989-2016.

***** 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 ***


In addition, I got the same error message when I try ADS 2016.
And I also read the past issues related with SetADSPaths and I set the path as 'C:\Program Files\Keysight\ADS2021_Update2'

Thanks for reading.

Private methods not defined

Hi, many thanks for this tool, it looks amazing. I'm having an issue with Demo 2 when running RunSimulation MATLAB kicks out an error about (so far) PrintHeader, fprintf and RunProcessAsync not being defined for the TADSInterface class or being removed from MATLAB's search path. This is using R2020a, and I'm not entirely sure what the root cause is here.

Many thanks!

Tom

Hi,i want to have a new need

Hi, many thanks for this tool, it looks amazing.I have some new need for this tool. Based on this interface,can you control ADS optimization tool through matlab? Can you further extend this interface? or give me some advice to control ADS optimization toolbox through matlab?thank you!

Unable to access the library "XXX"

Hello!

   It's a pleasure to communicate with you.
   I have a problem for this interface.
   I created an ADS project and the project needs a library, so I added a library in the ADS UI. 
   In the end, I successfully simulated the project and got the result.

  But when I try to use this interface to simulate the project, I get an error:
  "Unable to access the library "XXX""
  I don't know why.

  And still the same problem occurs when I try to simulate the project using the command line:
  hpeesofsim.exe D:\Desktop\ADS demo\...\netlist.log


   How can I solve this problem ? Thank you very much.

Running ADS from Matlab Error

Hey,
Thanks for the ADS-Matlab interface you developed. That's amazing.
I was facing a problem running 'Demo020L__ChangeParameter_and_RunSimulation' showing error

"[ADS][09:12:43] Running ADS simulator "hpeesofsim"...
Error using TADSInterface/RunSimulation (line 2072)
Cannot run simulation. The exit code is 1"

Any idea why? Much appreciated your help.

Best Regards
Sagar

Cannot run simulation: HPEESOF_DIR is set to an invalid directory

Hi Korvin,

I have an issue with this interface. When I try to run Demo 2, I get this message:

[ADS][20:11:41] Running ADS simulator "hpeesofsim"...
HPEESOF_DIR is set to an invalid directory. ""C:\Program Files\Keysight\ADS2020"\bin" does not exist.
Error setting up command line: HPEESOF_DIR is set to an invalid directory. ""C:\Program Files\Keysight\ADS2020"\bin" does not exist.
hpeesofsim (*) 510.shp Jul 22 2019, MINT version 5
(64-bit windows built: Mon Jul 22, 2019 22:53:59 +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 AEL0056 hpeesofsim: AEL file not found
*** FATAL ERROR: Unable to load default AEL personality ***

I get the same message when I manually run in MATLAB console [status, cmdout] = system('hpeesofsim "netlist.log"') or [status, cmdout] = system('hpeesofsim netlist.log').
I have set all environment variables manually in Control Panel > System > Advanced system settings > Environment variables, including HPEESOF_DIR, COMPL_DIR. I have also called

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

before calling ADS.RunSimulation('Verbosity', 'all').

I am using MATLAB R2019a and ADS 2020. However, I don't think the ADS version constitutes the problem; when I run the command hpeesofsim "netlist.log" in Windows cmd, everything goes fine. The project has no problem getting opened by ADS 2020 or simulated by clicking the simulation icon.

hpeesofsim (*) 510.shp Jul 22 2019, MINT version 5
(64-bit windows built: Mon Jul 22, 2019 22:53:59 +0000)

Parsing the netlist ...
Flattening the netlist ...

AC AC1[1] <netlist.log> freq=3 GHz

Evaluating unattached measurement equations ...
Flushing unattached measurement equation results ...
Checking for unresolved variables ...
Flushing data (please wait) ...
Flushing unattached measurement equation results ...
... data flush done.

Resource usage:
Total stopwatch time = 0.95 seconds.

What do you think might be the reason? Thank you.

Best regards,
Wenjun

I have a problem for this interface

when I try to run the second demo , I met problems even if I use 'ADS.RunSimulation('Verbosity','none')'.
the error is :

 'error use of TADSInterface/RunSimulation (line 2065)
  Cannot run simulation "hpeesofsim "netlist.log"". The system message is: 
  hpeesofsim (*) 490.shp Nov 12 2018, MINT version 4
  (64-bit windows built: Tue Nov 13, 2018 02:20: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    AEL0056 hpeesofsim: AEL file not found
  *** FATAL ERROR: Unable to load default AEL personality ***'

How can I solve this problem ? Thank you very much.

I have a problem

when I try to run the second demo , I met a problems when I use 'ADS.RunSimulation()'.
the error is :
'error use of TADSInterface/PrintHeader (line 2065)'
The interface shows that the method 'printHeader' is not defined for class 'TadsInterface', or that the method has been removed from the Matlab search path.
How can I solve this problem ? Thank you very much.

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.