完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试使用VEE创建一个Callable VEE客户端,当涉及获取CallServer句柄,加载另一个VEE库,获取加载库中的用户函数列表甚至获取名称,类型和
每个函数所需的参数数量。 在我遇到死胡同的地方实际上是调用其中一个用户函数。 根据帮助,Call方法具有以下语法和要求:“语法UserFunction.Call [Inputs] [,Outputs]或Main.Call [Inputs] [,Outputs]部分描述Inputs一个Variant数组。必须有一个元素 被调用函数的每个输入引脚。输出变量数组。“在我的程序中,我试图调用一个函数,其中一个输入引脚设置为标量文本,一个输出引脚输出标量文本结果。 同样在我的程序中,我要调用的用户函数的句柄是ufunc,我在方程式对象中有以下代码:input =[“ABCD”&#93 ;; input = asVariant(input); output = input; ufunc.Call(input,ByRef output);当我执行此代码时,我收到以下错误:“ActiveX对象:”VEE“返回错误代码:0x8004039d(925)ActiveX对象返回错误消息:值必须是 函数“TestStringInput”的一维VARIANT数组“输入”参数VEE错误号:413“当我查看输入和输出容器时,它们都被键入为VARIANT并且维度为1.所以问题是:是否可能 从vee中使用可调用的vee,若有,有没有任何例子? 具有讽刺意味的是,仅使用可调用的vee服务器提供其他语言的示例 以上来自于谷歌翻译 以下为原文 I am trying to create a Callable VEE client using VEE and things are just peachy when it comes to getting a CallServer handle, loading the other VEE library, getting the list of user functions in the loaded library and even getting the name, type, and the number of arguments each function takes. Where I am running into a dead end is actually calling one of the user functions. According to the help the Call method has the following syntax and requirements: " in my program I am trying to call a function that has a single input pin set to scalar text and one output pin that outputs a scalar text result. also in my program the handle to the user function I want to call is ufunc and I have the following code in an equation object: input = ["ABCD"]; when I execute this code, I get the following error: " when I look at the input and output containers they are both typed as VARIANT and have dimension of 1. So the question is this: is it possible to use callable vee from within vee and if so does anyone have any examples? The help ironically enough only provides examples of other languages using the callable vee server |
|
相关推荐
2个回答
|
|
而不是使用VEE来调用它的CallableServer,: 1怎么样。
如果VEE文件在同一台PC中,那么如何使用导入库调用?2。 如果VEE文件位于不同的PC中,那么使用远程功能怎么样? 两者都可以从Device> Import Library访问,只需更改库类型选项。 以上来自于谷歌翻译 以下为原文 Instead of using VEE to call its CallableServer, how about: 1. If the VEE files are within the same PC, how about using import library call? 2. If the VEE files are located in different PC, how about using Remote Function? Both also access from Device > Import Library, just change the library type options. |
|
|
|
谢谢你的建议。
虽然远程函数似乎在这种情况下有效,但我仍然想知道为什么我无法在VEE内使UserFunction.Call()方法工作。谢谢, 以上来自于谷歌翻译 以下为原文 Thanks for the suggestions. While remote functions seems to work in this case, I still would like to know why I couldn't get UserFunction.Call() method to work from within VEE. Thanks, |
|
|
|
只有小组成员才能发言,加入小组>>
1226 浏览 0 评论
2348 浏览 1 评论
2159 浏览 1 评论
2024 浏览 5 评论
2906 浏览 3 评论
972浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
705浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
806浏览 0评论
1228浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 06:11 , Processed in 1.506296 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号