LinxVIEW论坛-斯科道

 找回密码
 立即注册

Python的调用

查看数: 9116 | 评论数: 7 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2018-11-13 13:31

正文摘要:

LabVIEW 2018 引入了Python节点,它提供了从LabVIEW块图中直观地调用Python脚本的本地能力。它使用LabVIEW原语,提供了一种在低延迟的语言之间进行互操作的方法。仅支持版本为2.7和3.6的Python。    对于Pyt ...

回复

Scadao 发表于 2019-1-11 19:27:30
在如下路径安装numpy和matplotlib:
C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\Scripts

运行链接第12条信息中例程,成功截图如下:

调用Python函数

Scadao 发表于 2019-1-11 17:59:39
这几天设置环境编译运行调用Python节点通过的经验如下:

无论Windows7还是Windows10的32位或64位操作系统,均无所谓,但跟LabVIEW2018的版本有关,32位的测试通过,64位没测试成功过。测试选用的Python官网的Python3.6.0版本,默认路径安装。
Scadao 发表于 2019-1-8 14:30:39
据NI网友经验,Python节点的调用如超过3.6.7以上则编译出错:

3.6.6 also works.
3.6.7 doesn't work.
3.6.8 doesn't work.


Scadao 发表于 2019-1-8 13:14:03
上楼链接中有段涉及库安装编译通不过的问题,解决办法:

After a long time of research, I found the solution :
1. in the command prompt write "cd C:\Users\user\AppData\Python36-32\Scripts" so all the other command will occur in this folder.
2. type "pip install numpy" and the other libraries that you want. I installed matplotlib, scipy, scikit-learn, pillow, pandas, tensorflow (compatible just with Python 64bits) and keras.

After these steps you will be able to run the codes which use your libraries.

Scadao 发表于 2019-1-7 11:47:55

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

GMT+8, 2024-5-4 06:12 , Processed in 0.046099 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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