完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
大家好,我尝试将可调用的vee服务器与使用C#及其.NET框架编写的程序一起使用。
我必须说之前我对C#还不是很熟悉,但是,在阅读并执行'callserv.chm'帮助文件中给出的指令之后,我遇到了'UserFunction.call'方法的问题,特别是' 变体'变量。 C#不存在此类型。 我尝试了很多方法,通过一个简单的VEE程序从'UserFunction'中检索输出值。 在最好的情况下,我的程序执行正常,但不传递值。 在最坏的情况下,我从VEE服务器捕获有关返回值错误数量的异常。 关于我可以用这个UserFunction.call(对象,ref对象)做什么,我没有更多的想法。 如果有人有代码示例或解释。 谢谢。 PS:我使用VEE Pro和VEE运行时v8.5Valeo Equipements Electriques MoteurS.AS au capital de 80 001345EurosSiège社交:2,rueAndréBoulle94046CréteilCedex - FranceR.CSCréteil955500 293www.valeo.com此电子邮件 仅用于预期接收者的使用。其中包含的信息可能是机密或特权,并且严格禁止披露或复制。如果您不是预定的接收者,请立即将其返回给发件人。 以上地址并销毁它。 ---您目前订阅了vrf:hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,并在邮件正文中添加“subscribe”字样。要取消订阅,请发送空白 发送电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“http://www.vrfarchive.com/vrf_archive”上搜索“非官方vrf档案”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 Hello everyone, I try to use the callable vee server with a program written with C# and its .NET framework. I must say before that I'm not very familiar with C# yet, but, after reading, and doing instructions given in the 'callserv.chm' help file, I encounter a problem with the 'UserFunction.call' method, especially with 'variant' variables. This type doesn't exist with C#. I tried many ways to retrieve output values from a 'UserFunction' with a simple VEE program. In best case, execution of my program is ok, but values are not passed. In worst, I catch an exception from VEE server about wrong number of returned values. I have no more ideas about what I could do with this UserFunction.call(object, ref object). If someone has a sample of code, or explanations. Thank you. PS : I use VEE Pro and VEE runtime v8.5 Valeo Equipements Electriques Moteur S.A.S au capital de 80 001 345 Euros Siège social : 2, rue André Boulle 94046 Créteil Cedex - France R.C.S Créteil 955 500 293 www.valeo.com This e-mail message is intended only for the use of the intended recipient(s). The information contained therein may be confidential or privileged, and its disclosure or reproduction is strictly prohibited. If you are not the intended recipient, please return it immediately to its sender at the above address and destroy it. --- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
相关推荐
2个回答
|
|
|
我测试了它虽然没有在7.5中,ATAN2给出了度数的答案,其中全局设置为度数,弧度设置为弧度。
也许在7.5中存在导致此问题的一些问题。 但是在7.0版本中似乎没有问题.---星期五,7/4/08,Meachen,Jacob写道:来自:Meachen,Jacob主题:[vrf] ATAN2与ATANTo:“VRF”日期:星期五,七月 4,2008,3:33 AMOk VRF看看你是否可以围绕这一个包围你的集体头! 我正在使用ATAN2生成一些角度数据,以便稍后在程序中进行一些计算。 计算自然涉及sin()和cos()。 因此,重要的是单元在程序中是一致的。我将trig模式设置为度,因为我习惯于以度为单位工作,即我认识到罪(90)比我认识到罪更快(1.5707982)然而使用atan2会产生结果 以弧度为单位并使用atan生成一个结果,该结果以全局trig值设置的单位表示。 但是,帮助文件另有说明。 是否有一种快速简便的方法来检测值所在的单位。这将是困难的,因为在某些情况下得到的度数可能在弧度范围内,即在+/- 3.141之间。 因此,测距并不是一个很好的方法。 是否有更好的方法来产生比使用atan2更好的结果?我正在使用vee 7.5并且我们不打算很快升级到vee 8 ---您目前订阅的是vrf:sherekhan_kl @ yahoo。 com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 ---您目前订阅了vrf:hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 I tested it although not in 7.5 and ATAN2 gives me answers in degrees with rthe global set to degrees and radians when set to radians. Maybe there is some issue in 7.5 that is causing this problem. But there appears to be no issues in 7.0 version. --- On Fri, 7/4/08, Meachen, Jacob wrote: From: Meachen, Jacob Subject: [vrf] ATAN2 versus ATAN To: "VRF" Date: Friday, July 4, 2008, 3:33 AM Ok VRF see if you can wrap your collective heads around this one! I am using ATAN2 to produce some angle data for use in some calculations later on in the program. The calculation naturally involve sin() and cos(). Thus it matters that the units are consistent through the program. I have the trig mode set to degrees because I am used to working in degrees, i.e. I recognise sin(90) quicker than I recognise sin(1.5707982) However using atan2 produces a result in radians and using atan produce a result which is in the units set by the global trig value. However the help file states otherwise. Is there a quick and easy way to detect which units the values are in. this will be difficult because the resulting degrees could in some cases be within the region of radians i.e. between +/- 3.141. so range finding is not a good way to do it. Is there a better way of producing a result which is better than using atan2? I am using vee 7.5 and we don't intend on upgrading to vee 8 any time soon --- You are currently subscribed to vrf as: sherekhan_kl@yahoo.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". --- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
|
|
|
|
我测试了它虽然没有在7.5中,ATAN2给出了度数的答案,其中全局设置为度数,弧度设置为弧度。
也许在7.5中存在导致此问题的一些问题。 但7.0版本似乎没有问题。 ---星期五,7月4日,Meachen,Jacob写道:来自:Meachen,Jacob主题:[vrf] ATAN2与ATANTo:“VRF”日期:2008年7月4日星期五,3:33 AMOk VRF看看是否 你可以围绕这一个包围你的集体头! 我正在使用ATAN2生成一些角度数据,以便稍后在程序中进行一些计算。 计算自然涉及sin()和cos()。 因此,重要的是单元在程序中是一致的。我将trig模式设置为度,因为我习惯于以度为单位工作,即我认识到罪(90)比我认识到罪更快(1.5707982)然而使用atan2会产生结果 以弧度为单位并使用atan生成一个结果,该结果以全局trig值设置的单位表示。 但是,帮助文件另有说明。 是否有一种快速简便的方法来检测值所在的单位。这将是困难的,因为在某些情况下得到的度数可能在弧度范围内,即在+/- 3.141之间。 因此,测距并不是一个很好的方法。 是否有更好的方法来产生比使用atan2更好的结果?我正在使用vee 7.5并且我们不打算很快升级到vee 8 ---您目前订阅的是vrf:sherekhan_kl @ yahoo。 com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 ---您目前订阅了vrf:hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 I tested it although not in 7.5 and ATAN2 gives me answers in degrees with rthe global set to degrees and radians when set to radians. Maybe there is some issue in 7.5 that is causing this problem. But there appears to be no issues in 7.0 version. --- On Fri, 7/4/08, Meachen, Jacob wrote: From: Meachen, Jacob Subject: [vrf] ATAN2 versus ATAN To: "VRF" Date: Friday, July 4, 2008, 3:33 AM Ok VRF see if you can wrap your collective heads around this one! I am using ATAN2 to produce some angle data for use in some calculations later on in the program. The calculation naturally involve sin() and cos(). Thus it matters that the units are consistent through the program. I have the trig mode set to degrees because I am used to working in degrees, i.e. I recognise sin(90) quicker than I recognise sin(1.5707982) However using atan2 produces a result in radians and using atan produce a result which is in the units set by the global trig value. However the help file states otherwise. Is there a quick and easy way to detect which units the values are in. this will be difficult because the resulting degrees could in some cases be within the region of radians i.e. between +/- 3.141. so range finding is not a good way to do it. Is there a better way of producing a result which is better than using atan2? I am using vee 7.5 and we don't intend on upgrading to vee 8 any time soon --- You are currently subscribed to vrf as: sherekhan_kl@yahoo.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". --- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
|
|
|
只有小组成员才能发言,加入小组>>
237 浏览 0 评论
1859 浏览 0 评论
2752 浏览 1 评论
2655 浏览 1 评论
2477 浏览 5 评论
1859浏览 0评论
431浏览 0评论
237浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-10 23:15 , Processed in 0.845632 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2133