在Python下调用Labview 

    •   安装hoplite

在Python下调用Labview

 

    •   安装python_labview_automation

在Python下调用Labview

 

  • Demo
from labview_automation import LabVIEW

lv = LabVIEW()
lv.start()
with lv.client() as c:
    control_values = {
        "DBL Control": 5.0,
        "String Control": "Hello World!",
        "Error In": {
            "status": False,
            "code": 0,
            "source": ""
        }
    }
    indicators = c.run_vi_synchronous(
        vi_path, control_values)
    print(indicators['Result'])
    error_message = c.describe_error(indicators['Error Out'])
lv.kill()

 

 

相关文章:

  • 2021-12-09
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2022-02-01
  • 2022-12-23
  • 2021-07-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-01-18
  • 2022-01-21
  • 2022-12-23
相关资源
相似解决方案