完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我有一些labview代码,我试图将其集成到VEE中,并且在大多数情况下,我在模仿相关示例中的过程后已经成功了。
但是,当我尝试将值传递给LabVIEW集群时,我遇到了重大问题。 有问题的集群包含一个字符串和一个数字,因此我尝试传递具有相同结构的记录。 但是,当我这样做时,我得到一个通用错误弹出窗口“Agilent VEE遇到了问题。” 当我将此集群作为输出而不是输入传递时,我发现VEE正确处理它并创建一个与我之前构建的记录具有相同结构的记录。是否有任何人可以了解我为什么能够' 将记录传递到LabVIEW集群输入中?感谢您提供的所有帮助! 以上来自于谷歌翻译 以下为原文 Hello, I have some LabVIEW code that I am trying to integrate into VEE, and for the most part, I've been succesful after mimicing the procedure in the relevant example. However, I am running into major problems when I try to pass a value into a LabVIEW cluster. The cluster in question contains a string and a number, and so I tried to pass a record with the same structure. However, when I do so, I get a generic error pop up window "Agilent VEE has encountered a problem." When I pass this cluster in as an output instead of an input, I've found that VEE handles it properly and creates a record that has the same structure as the one I built earlier. Does anybody have any insight as to why I can't pass a record into a LabVIEW cluster input? Thanks for any and all help! |
|
相关推荐
1个回答
|
|
我不得不承认我不熟悉VEE和LabView代码的集成。
我假设您正在使用某些非专有媒体进行通信,例如[TCP / IP]套接字?无论如何,我认为这不会直接起作用,因为极有可能像记录,波形等复合结构 将在每种语言中以不同的方式实现(不仅仅是这两种语言 - 选择任何其他两种语言,如C ++和Visual Basic)。 在这种情况下,您需要在两种语言中创建某种适配器,将任何结构转换为“本机”元素(实际,文本,整数)以将它们传递过来,然后在另一侧重新构造它们。 如果你有两个地方在两者之间传递数据,你可以将转换器集成到该代码中。这可能有点棘手,使其成为通用的(例如,在VEE中,您可能需要在重建记录之前检查数据类型)。 以上来自于谷歌翻译 以下为原文 I have to admit I'm not familiar with integrating VEE and LabView code. I'm assuming you are communicating using some non-proprietary medium such as a [TCP/IP] socket? Anyway, I don't think that will work directly as it is extremely likely that compound structures like records, waveforms and the like are going to be implemented differently in each language ( that doesn't just go for these two either - pick any other two languages like C++ and Visual Basic ). In that case you'll need to make some sort of adapter in both languages that converts whatever structure into 'native' elements ( real, text, integer ) to pass them across and then re-construct them on the other side. If you have one place passing data between the two you can integrate the converter into that code. It could be a little tricky making it generic ( in VEE you may need to check for the data type before reconstructing a record, for example ). |
|
|
|
只有小组成员才能发言,加入小组>>
1231 浏览 0 评论
2351 浏览 1 评论
2161 浏览 1 评论
2026 浏览 5 评论
2910 浏览 3 评论
974浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
707浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
808浏览 0评论
1231浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 06:04 , Processed in 1.342570 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号