LinxVIEW论坛-斯科道

 找回密码
 立即注册
查看: 6744|回复: 0
打印 上一主题 下一主题

Python代码中控制调用LabVIEW VI

[复制链接]

537

主题

750

帖子

2617

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2617
跳转到指定楼层
楼主
发表于 2019-12-8 12:53:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 Scadao 于 2019-12-8 12:55 编辑

Python代码中控制调用LabVIEW VI

Enthought's Python Integration Toolkit for LabView is designed to give LabView VI authors the power of Python computation.

To go in the opposite direction, and automate LabView from Python, you can use the Python LabVIEW Automation open-source packages, written by NI employees.

These packages were not written by and are not supported by Enthought. We expect that the following instructions will work, but we have not tested them:

In the Canopy Package Manager (or with EDM), install or update the following packages:
psutil, flask, argparse, tornado, requests, tblib, pymongo

Download each of these NI packages as a zip file (green "Clone or Download" button in upper right):

In a Canopy Command Prompt, from your download directory:

pip install hoplite-master.zippip install python_labview_automation-master.zip
Tangentially -- if you don't actually need Python to be controlling LabView from the top, but just want to write Python code to simplify the control logic of your VI's, then you can can write a simple Labview VI which calls complex Python functions, whose return values determine what Labview code should be called.



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|SCADAO  

GMT+8, 2024-11-8 22:08 , Processed in 0.041053 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表