jkh920184196 / SimulationServer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SimulationServer

  1. 安裝Python3.8 (https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe) 在裝有AEDT軟體的工作站上。
  2. 升級pip工具。開啟命令視窗,切換到Python安裝目錄,舉例來說,C:\Users\mlin\AppData\Local\Programs\Python\Python38:輸入.\python.exe -m pip install --upgrade pip
  3. 接下來安裝streamlit及streamlit_autorefresh兩個模組。一樣開啟命令視窗,切換到Python安裝目錄當中的Scripts目錄,舉例來說,C:\Users\mlin\AppData\Local\Programs\Python\Python38\Scripts
  • 輸入.\pip install streamlit
  • 輸入.\pip install streamlit_autorefresh
  1. 建d:\demo目錄
  2. 將ui.py及business.py及AEDTRemoteHost.bat複製到任一目錄當中,修改py當中的環境變數設定:ansysEM_path, queue_dir, days_to_keep, line_notify_handler等。
  3. 執行AEDTRemoteHost.bat。成功的話會啟動瀏覽器並開啟localhost:8501頁面。

About


Languages

Language:Python 98.7%Language:Batchfile 1.3%