LinxVIEW论坛-斯科道

 找回密码
 立即注册
查看: 5050|回复: 0

Python代码中控制调用LabVIEW VI

[复制链接]

535

主题

746

帖子

2597

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2597
发表于 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-4-21 11:00 , Processed in 0.047318 second(s), 32 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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