如何从c++读取写入labview网络共享变量
LabVIEW 提供了通过网络共享变量的可能性。我希望能够从我的 C++ 代码中读取和设置这些变量。 (我在linux系统下运行)
我读到有一些用于通信的DLL API,但当然它们不符合我的目的。
我想我们整个通信应该只是基于套接字,因此我想在 Linux 环境中应该是可行的。
有人对这个主题有一些信息/想法吗?
LabVIEW gives the possibility of sharing variables over the network. I would like to be able to read and set those variable from my C++ code. (I run under linux system)
I read there are some DLL API for communication but of course they do not fit my purpose.
I guess we the whole communication should be simply based on sockets and therefore I guess should be more than feasible from linux environment.
Does anyone have some information/ideas about this topic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在网站上找到它并不容易,但有人向我指出了一个官方图书馆,NI LabWindows™/CVI™ 2009 帮助 - 网络变量库,这应该可以发挥所有作用。
不过我还没有测试过。
It's not very easy to find it on the website but I have been pointed out to an official library, NI LabWindows™/CVI™ 2009 Help - Network Variable Library, that should do all the magic.
I haven't tested it yet though.
在我看来,他们只支持 Windows 上与 C++ 的互操作。
您必须通过对其通信协议进行逆向工程,自行重新实现整个串扰机制。不是小事!
Looks to me like they only support interop with C++ on Windows.
You'd have to reimplement the entire crosstalk mechanism yourself, by reverse engineering their comms protocol. Not trivial!
由于无法实现 LV 共享变量协议(如 Tomalak 的帖子所述),启用两者之间通信的最佳选择是使用
Having no way to implement LV shared variable protocol (as Tomalak's post says), your best bet to enable communication between both would be to