完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我是第一次尝试VEE Pro 9.0而且我需要使用.net程序集来控制远程外部程序,但它的使用模型是:ISomeInterface myReference = Utilities.SomeStaticMethod(一些参数);我用过Device->
.NET Assembly Reference用于添加引用,Device-> Function和Object浏览器显示Utilities类,但不显示SomeStaticMethod。 我如何创建myReference?提前感谢! 以上来自于谷歌翻译 以下为原文 I'm trying VEE Pro 9.0 for the first time and I need to use a .net assembly to control a remote external program but its use model is: ISomeInterface myReference = Utilities.SomeStaticMethod(some parameters); I've used Device->.NET Assembly Reference to add the reference, and Device->Function and Object browser shows the Utilities class but SomeStaticMethod is not shown. How would I create myReference? Thanks in advance! |
|
相关推荐
2个回答
|
|
好的,我在Device-> Function和Object浏览器中找到了SomeStaticMethod,该步骤似乎执行正常。
解决了初始问题。但是,我尝试使用返回的接口访问的任何IRemoteAte方法或属性都失败,错误751.我阅读了帮助页面,没有解决它。这是实际的代码:Text(130.29.70.192) - > RemoteAteUtilities .GetRemoteAte(ipAddress) - > iRemoteAte.Ping()我验证:支持IRemoteAte接口的远程应用程序正在远程机器上运行运行VEE的PC可以通过LAN访问远程机器IP地址是正确的。我可以访问远程应用程序 使用我给VEE的同一个DLL使用其他远程客户端 - 这个DLL由远程程序提供,使用.NET Remoting建立与远程程序的连接并返回一个IRemoteAte接口 以上来自于谷歌翻译 以下为原文 Okay, I found the SomeStaticMethod in Device->Function and Object browser and that step seems to execute ok. Initial problem resolved. However, any IRemoteAte method or property I try to access using the returned interface fails with error 751. I read the help page for that and nothing resolves it. Here's the actual code: Text(130.29.70.192) -> RemoteAteUtilities.GetRemoteAte(ipAddress) -> iRemoteAte.Ping() I verified: The remote application that supports the IRemoteAte interface is running on the remote machine The PC running VEE can access the remote machine via LAN The IP address is correct. I can access the remote application using other remote clients using the same DLL I gave to VEE - this DLL, provided by the remote program, uses .NET Remoting to establish a connection to the remote program and returns an IRemoteAte interface |
|
|
|
在使用Device - > .NET Assembly Reference并导入命名空间后,您应该能够使用Device-> .Net Operation builder.It是一个很好的树结构,允许您读取,获取或设置VEE样式的参数
交易。 提示查看顶部的选项卡,如果您希望参数是输入引脚或变量,您可以告诉它。 以上来自于谷歌翻译 以下为原文 After you've used Device->.NET Assembly Reference and imported the namespace, you should be able to use Device-> .Net Operation builder. It is a nice tree structure that allows you to read, get or set parameters into VEE style transactions. Hint look at the Tabs at the top and you can tell it if you want the paramater to be an input pin or variable. |
|
|
|
只有小组成员才能发言,加入小组>>
956 浏览 0 评论
2242 浏览 1 评论
2022 浏览 1 评论
1893 浏览 5 评论
2762 浏览 3 评论
745浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
541浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
633浏览 0评论
2423浏览 0评论
1474浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-1 10:24 , Processed in 1.402216 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191