[Moved]: Calling MATLAB scripts from ADS
时间:03-25
整理:3721RD
点击:
Hey,
I noticed that ADS has to some extent a built in functionality to call MATLAB scripts. However, this seems to be for very specific types of simulations only.
So here's my question:
Does anybody know of a way to include an external script (preferably MATLAB, but Python or C++ or whatever would also be worth a try) in a ADS circuit simulation (like DC or HB simulation).
The reason I ask is the following: I am implementing a physics based device model in ADS that requires implementation of some deifferential equations. I found a way to realize that to some extent using user defined equations in SDD elements. However, building up a system of rather complicated calculations is not very convenient in ADS directly. Nevertheless I would want to simulate only an intrinsic part of my device in a numerical solver (like MATLAB) calculating for example some R's, C's, and L's, or imput/output voltages and currents, but have this intrinsic part embedded in an ADS circuit simulation. For obvious reasons of not having to implement a whole circuit simulation environment in MATLAB from scratch because that's what ADS is good at.
While this sounds very complicated, let's just think of a very simple resistor, but the equation I=U/R in an ADS DC simulation being evaluated by calling a MATLAB function I = resistor(U,R).
I am not sure if this is possible at all, but I would really appreciate help in any form of how to approach this situation.
Thanks a lot!!!
itchy00
I noticed that ADS has to some extent a built in functionality to call MATLAB scripts. However, this seems to be for very specific types of simulations only.
So here's my question:
Does anybody know of a way to include an external script (preferably MATLAB, but Python or C++ or whatever would also be worth a try) in a ADS circuit simulation (like DC or HB simulation).
The reason I ask is the following: I am implementing a physics based device model in ADS that requires implementation of some deifferential equations. I found a way to realize that to some extent using user defined equations in SDD elements. However, building up a system of rather complicated calculations is not very convenient in ADS directly. Nevertheless I would want to simulate only an intrinsic part of my device in a numerical solver (like MATLAB) calculating for example some R's, C's, and L's, or imput/output voltages and currents, but have this intrinsic part embedded in an ADS circuit simulation. For obvious reasons of not having to implement a whole circuit simulation environment in MATLAB from scratch because that's what ADS is good at.
While this sounds very complicated, let's just think of a very simple resistor, but the equation I=U/R in an ADS DC simulation being evaluated by calling a MATLAB function I = resistor(U,R).
I am not sure if this is possible at all, but I would really appreciate help in any form of how to approach this situation.
Thanks a lot!!!
itchy00