【问题标题】:Run an application in Background using Python in windows在 Windows 中使用 Python 在后台运行应用程序
【发布时间】:2020-04-02 20:10:57
【问题描述】:
path = "C:\\Users\\BIKRAM\\Documents\\LTspiceXVII\\NETLIST"
for filename in glob.glob(os.path.join(path, '*.cir')):
    ltspice_path = r'C:\\Program Files\\LTC\\LTspiceXVII\\XVIIx64.exe'
    subprocess.Popen([ltspice_path, filename ])

我正在运行此代码以将多个 .cir 文件执行到 LTSpice 应用程序中。但是这里 LTSpice 正在为每个 .cir 文件打开。有没有办法在不打开 LTSpice 的 UI 的情况下运行所有​​文件?

【问题讨论】:

    标签: python-3.x simulator circuit


    【解决方案1】:

    LTSpice 模拟可以使用命令提示符通过批处理执行

    LTSpice 帮助 > 操作模式 > 命令行开关

    <path\of\program>XVIIx86.exe -b -Run file_name.cir
    

    -b 将在不打开 LTSpice 的情况下执行 .cir.asc

    这可能有助于将其添加到您的多个模拟程序中

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-01-18
      • 2014-01-10
      • 2011-09-11
      • 1970-01-01
      • 2012-10-31
      • 2013-04-11
      相关资源
      最近更新 更多