• 易迪拓培训,专注于微波、射频、天线设计工程师的培养
首页 > ADS > ADS FAQ > Is there any method to control ADS simulation from python?

Is there any method to control ADS simulation from python?

录入:edatop.com    点击:

How to start hpeesofsim from python script?

.....control parameters in netlist?

You can use os.system() function to run hpeesofsim. But before calling hpeesofsim, you should set up all the necessary environment variables which is mentioned in ADS help.

So my suggestion is to create .bat file which include environment variable setting and leave the hpeesofsim command in the end. And then you call this .bat file using python os.system()

Here is example of .bat file:

@echo on

set HOME=xxxxxx
set HPEESOF_DIR=C:/Keysight/ADS2017
set COMPL_DIR=%HPEESOF_DIR%
set SIMARCH=win32_64
set SVECLIENT_DIR=%HPEESOF_DIR%/SystemVue/2016.08/%SIMARCH%

path %HPEESOF_DIR%\bin\%SIMARCH%;%HPEESOF_DIR%\bin;%HPEESOF_DIR%\lib\%SIMARCH%;%HPEESOF_DIR%\circuit\lib.%SIMARCH%;%HPEESOF_DIR%\adsptolemy\lib.%SIMARCH%;%PATH%;.
path %SVECLIENT_DIR%/bin/MATLABScript/runtime/win64;%SVECLIENT_DIR%/sveclient;%PATH%


hpeesofsim %1%
@echo on

example python code:

import os

os.system('ads.bat netlist_path_name')

申明:网友回复良莠不齐,仅供参考。如需专业帮助,请学习易迪拓培训专家讲授的ADS视频培训课程

上一篇:Channel simulation: SPI channel with clock (dual speed transmitters)
下一篇:Is the spec for EGS archive format published online?

ADS培训课程推荐详情>>

  网站地图