是德科技
直播中

李秀云

8年用户 815经验值
私信 关注
[问答]

CallableVEE问题

>你不能这样做[使用> ActveX客户端/服务器从VEE呼叫> VEE]。哇!
太棒了。
我会让它通过,直到我能确切地知道为什么butuntil然后(如果真的发生过)我可以说它是我听过的最令人惊奇的东西之一。[变种阵列]>我明白它是>
ActiveX> interface.ActiveX的条件仅传递一种类型:variant。
一种变体是任何一种变体。
甚至变种。
因此规范。
它几乎是传递未知数量的未知类型参数的唯一途径。
所以对于input参数,有一个名为Inputs的变量数组,对于输出参数,有一个名为Outputs的变量数组。

回帖(5)

崔映芬

2019-11-4 13:48:54
大家好,自加入ADN专业版以来,我收到了两个VEE6.1更新套件。
我的问题是这个。
如果我在我的一个测试台上安装VEE6.1并加载使用VEE 6.0开发的应用程序,我会遇到任何问题吗?目前,我没有时间评估新的软件版本,但另一方面,我
不想落后。
任何智慧的话?提前感谢Dwayne EnsignEaton Aerospace,Vickers Fluid SystemsJackson,Mississippi ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists
.it.agilent.com“。要取消订阅,请发送空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf@it.lists.it.agilent
.COM”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Hello everyone,

Since joining the ADN Professional I have received two update kits for VEE
6.1.  My question is this.  Will I experience any problems if I install VEE
6.1 on one of my test stands and load an application developed with VEE 6.0?
At the present time, I do not have time to evaluate a new software version,
but on the other hand, I don't want to fall behind.  Any words of wisdom?

Thanks in advance,
Dwayne Ensign
Eaton Aerospace, Vickers Fluid Systems
Jackson, Mississippi

---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

李秀云

2019-11-4 14:00:44
Bill - >声明一维VARIANT数组>函数的“输入”参数>“PassIn”>。不要把它作为福音(我没有版本6&所以不能测试这个)但是这条消息
似乎表明你必须明确地将参数包装到VARIANT数组并传递它。
像这样:vIn = asVariant([Param1,Param2]); lErr = rpcServer.RemoteFunctionName(vIn,vOut); iAnswer = asInt32(vOut [0]);这很有趣 - 这正是VeeGateway的工作方式.-
SHAWN ----您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白电子邮件至“
leave-vrf@it.lists.it.agilent.com“。要发送邮件到这个邮件列表,请发送电子邮件至”vrf@it.lists.it.agilent.com“。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Bill -

> states that the a 1 dimensional VARIANT array
> "Inputs" parameter of function
> "PassIn" >.

Don't take this as gospel (I don't have version 6 & so can't test this) but
this message would seem to indicate that you must explicitly pack parameters
into a VARIANT array and pass that. Something like this:

vIn = asVariant([Param1, Param2]);
lErr = rpcServer.RemoteFunctionName(vIn, vOut);
iAnswer = asInt32(vOut[0]);

It's funny - this is precisely the way VeeGateway was to work.
-SHAWN-


---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

崔映芬

2019-11-4 14:08:05
肖恩,谢谢你的建议。
我按照你的想法尝试将显式参数打包到aVariant数组中,但我仍然得到相同的错误!
如果我探测传递给函数的数据,以验证数据类型和结构,它看起来正是错误消息告诉我应该传递的内容。几乎看起来VEE主程序没有正确地将Variantdata类型传递给
远程功能,也许是一个bug?
我很乐意让安捷伦有人来验证这个功能.....另一个有趣的事情是我已经验证了我称之为的VEE库。
我已经使用VBScripting测试它来执行callableVEE并访问我的所有库函数!问候,Bill Dyer -----原始消息-----来自:Shawn Fessenden [mailto:shawnf@ameritech.net]发送:9月2日星期二
24,2002 11:33 PMT:VEE vrfSubject:[vrf] RE:CallableVEE ProblemBill - >声明一维VARIANT数组>函数的“输入”参数>“PassIn”>。不要把它作为福音(I
没有版本6&所以不能测试这个)但是这条消息似乎表明你必须明确地将参数包装到VARIANT数组并传递它。
像这样:vIn = asVariant([Param1,Param2]); lErr = rpcServer.RemoteFunctionName(vIn,vOut); iAnswer = asInt32(vOut [0]);这很有趣 - 这正是VeeGateway的工作方式.-
SHAWN ----您目前订阅了vrf:wwdyer@lucent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白电子邮件至“
vrf@it.lists.it.agilent.com“。要发送邮件到这个邮件列表,请发送电子邮件至”vrf@it.lists.it.agilent.com“。如果您需要有关邮件列表的帮助,请向”所有者“发送邮件
-vrf@it.lists.it.agilent.com“.---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至”join-vrf@it.lists.it.agilent
。取消订阅发送空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Shawn,
Thanks for the suggestion. I tried out the explicit parameter packing into a
Variant array as you outlined but I still get the same error! If I probe the
data being passed into the Function, to verify the data type and structure,
it looks to be exactly what the error message tells me I should be passing.
It almost looks like the VEE Main program does not properly pass the Variant
data type to the remote function, maybe a bug?? I'd love to have someone
from Agilent verify this feature.....
Another funny thing is that I have verified that the VEE library that I call
is OK. I have tested it out using VBScripting to execute callableVEE and
access all my library functions!


Regards,
Bill Dyer

-----Original Message-----
From: Shawn Fessenden [mailto:shawnf@ameritech.net]
Sent: Tuesday, September 24, 2002 11:33 PM
To: VEE vrf
Subject: [vrf] RE: CallableVEE Problem


Bill -

> states that the a 1 dimensional VARIANT array
> "Inputs" parameter of function
> "PassIn" >.

Don't take this as gospel (I don't have version 6 & so can't test this) but
this message would seem to indicate that you must explicitly pack parameters
into a VARIANT array and pass that. Something like this:

vIn = asVariant([Param1, Param2]);
lErr = rpcServer.RemoteFunctionName(vIn, vOut);
iAnswer = asInt32(vOut[0]);

It's funny - this is precisely the way VeeGateway was to work.
-SHAWN-


---
You are currently subscribed to vrf as: wwdyer@lucent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com".

If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".

---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

李秀云

2019-11-4 14:24:57
威廉,你不能这样做[使用ActveX客户端/服务器从VEE调用VEE]。
这是安捷伦的官方消息;
显然这是'有点基础'。
你可以做一些事情,比如暴露函数,检查输入和输出类型等,但不能通过参数传递来调用调用位。但它确实可以从其他编程环境中获得良好的工作;
我从Delphi的早期版本和VB中得到了它,它是一块蛋糕。声明说,你必须将参数作为变量数据传递 - 我相信这个媒体上的其他人将能够给出一个更确定的声明
但我知道这是ActiveX接口的一个条件。我认为对于TestStand你必须为每个处理数据类型,返回变量等的测试函数构建一个“包装器”。你看过安捷伦的TestExec SL - 它可以调用VEE程序
希望对你有所帮助。请注意,Mike Watts,________________________________________________________________ Michael Watts,顾问PO Box 92网址:www.PreciselySo.Co.UK埃克塞特,德文电子邮件:MJWC@PreciselySo.Co.UK
英格兰电话:+44 7714 339 729 EX4 2YY _______________________________________________________________________---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至“join-vrf@it.lists.it.agilent.com”。
要取消订阅
ibe发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  William,
        You can't do it [call VEE from VEE using the ActveX client/server].
That's the official word from Agilent; apparently it is 'something
fundamental'.  You can do things like exposing the functions, examining
input and output types etc. but not the call bit with parameter passing.

It does work admirably from other programming environments though; I have
tried it from an early version of Delphi and from VB and it is a piece of
cake.

The statement stands though, that you have to pass parameters as variant
arrays - I'm sure some others on this medium will be able to give a more
definitive statement but I understand it is a condition of the ActiveX
interface.

I think for TestStand you have to build a 'wrapper' for each test function
which deals with the data types, return variables etc.

Have you looked at Agilent's TestExec SL - it can call VEE programs
out-of-the-box?


Hope that is of some help.


Regards,

Mike Watts

_______________________________________________________________________

  Michael Watts, Consultant                                 PO Box 92
  on the web: www.PreciselySo.Co.UK                      Exeter,Devon
  e-mail: MJWC@PreciselySo.Co.UK                              England     
  tel: +44 7714 339 729                                       EX4 2YY
_______________________________________________________________________

---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

更多回帖

发帖
×
20
完善资料,
赚取积分