为什么在Linux下LabVIEW的可执行程序中的 TCP/IP VIs不能运行?
主要软件:
主要软件版本: 2009
主要软件修正版本: N/A
次要软件: N/A
问题: 我编写了一个含有TCP/IP VIs的可执行程序,当它被使用在没有安装labVIEW的 Linux环境下时,TCP/IP连接失败。我如何才能在Linux系统下创建正确的TCP/IP连接呢?
解答: Linux下的LabVIEW运行引擎没有包含服务器探测器,当TCP/IP VIs企图通过服务器名称而不是TCP端口号获取连接时,该服务器探测器将必须被使用。解决问题的方法是在侦听即将到来的连接时使用静态的端口号而不是动态的端口号(0),这样可以避免使用服务器探测器。

图1 正确建立TCP侦听的范例VI
相关链接: Knowledgebase 370GCFBS: TCP/IP Error Codes and Related Time-out Issues in LabVIEW
附件:
报告日期: 01/23/2011
最近更新: 08/02/2013
文档编号: 5HMKJNTV
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.