【问题标题】:WinError2 Problems opening a LabVIEW programWinError2 打开LabVIEW程序时出现问题
【发布时间】:2021-12-16 06:53:35
【问题描述】:

我正在尝试使用 python 打开一个 .vi(LabVIEW 程序)。

# Allowing access for multiple users
user = input("Username: ")
guiboi = "C:/Users/{}/path_to_folder_containing_gui/name_of_gui.vi".format(user)

## Opening GUI
subprocess.call(['open',guiboi])

有人可以帮我弄清楚我做错了什么吗?

【问题讨论】:

  • 然后会发生什么?你有一些错误吗?如果是这样 - 请发布它们。

标签: python user-interface subprocess call labview


【解决方案1】:

LabVIEW VI 可能只能由 LV IDE 或运行引擎加载。 LabVIEW 提供命令行界面 (LabVIEWCLI)。固定操作之一是以编程方式打开任意 VI (RunVI)。也许您可以使用 LV cli 并将其与您的 python 脚本绑定。

LabVIEWCLI -OperationName RunVI -VIPath <VI path> <first element of array> <second element of array>

链接: LabVIEW CLI Canned CLI operations

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-24
    相关资源
    最近更新 更多