完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我是VEE的新手,我在labview中有一些函数作为.vi文件,我想在VEE程序中调用它们。
我按照用户手册中的建议将.vi文件转换为可执行文件(.exe)并尝试运行该程序。 它工作但我必须控制.vi功能的输入。 简单来说,我想将参数从VEE程序传递给被调用的.vi对象。 请建议。 以上来自于谷歌翻译 以下为原文 Hello, I am new to VEE and I have some functionalities in Labview as .vi files and I want to call them in VEE program. I converted the .vi files to executable (.exe) as suggested in the user manual and tried to run the program. It works but I have to control over the input to the .vi function. In simple terms, I want to pass parameters from VEE program to the called .vi object. Please suggest. |
|
相关推荐
2个回答
|
|
有趣!
这应该是可行的,因为您将动态创建命令行。 从执行程序对象(I / O - >执行程序)开始您可以直接在工作目录中写入可执行文件,并可选择将运行样式设置为最小化。 添加输入引脚(对象菜单 - >添加终端 - >数据输入...)并选择命令。 现在,您需要一个Formula对象(Device - > Formula)来构建command-plus-parameters字符串。 假设您在标有V&的公式框中有2个输入。 我和你的excutable称为SetupPSU.exe,那么你的公式看起来像这样(包括引号和空格):“SetupPSU.exe”+ V +“”+ I这与在命令行SetupPSU上键入相同。 exe 3.2 1.0让我们知道你是怎么过的。 我有一种感觉,根据应用程序,你可能想从DOS命令处理器调用它,在这种情况下,它需要从cmd / c SetupPSU.exe开始,但这可能只有你不想要 窗口出现,对不起,我不太记得那个细节。 如果以上操作无法直接起作用:1。检查在Windows命令窗口中输入的命令语法(即,您手动键入它以检查它是否有效)2。检查来自“创建命令行”的文本 公式框匹配点1. 3.尝试通过在Execute Program对象Mike中输入command-plus-arguments来调用可执行文件 以上来自于谷歌翻译 以下为原文 Interesting! This should be doable in that you'll create a command line on-the-fly. Start with the execute program object ( I/O -> Execute Program ) You can probably write in the working directory to the executable directly and, optionally, set the Run Style to minimised. Add an input pin ( object menu -> Add Terminal -> Data Input... ) and select Command. Now you need a Formula object ( Device -> Formula ) to build your command-plus-parameters string. Say you have 2 inputs on the formula box labelled V & I and your excutable is called SetupPSU.exe, then your formula would look like this ( quotes & spaces included ): "SetupPSU.exe " + V + " " + I which would be the same as typing on the command line SetupPSU.exe 3.2 1.0 Let us know how you get on. I have a feeling, depending on the application, that you might want to call it from the DOS command processor, in which case it would need to start with cmd / c SetupPSU.exe but that might be only if you don't want the window to show up, sorry I can't quite remember the details of that. If the above doesn't work straight off: 1. check the command syntax entered in a Windows command window ( that is, you type it in manually to check it works ) 2. check the text coming out of the 'create command line' formula box matches point 1. 3. try calling the executable by typing in the command-plus-arguments in the Execute Program object Mike |
|
|
|
bgvywerq 发表于 2018-9-18 18:58 它运作良好:)非常感谢你。 以上来自于谷歌翻译 以下为原文 It works well :) Thank you so much. |
|
|
|
只有小组成员才能发言,加入小组>>
1294 浏览 0 评论
2377 浏览 1 评论
2199 浏览 1 评论
2068 浏览 5 评论
2955 浏览 3 评论
1130浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
759浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
938浏览 0评论
1296浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 20:58 , Processed in 1.765917 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号