From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
读取UDP数据函数在不同的Labview版本之间并没有从根本上进行改变,但是Labview Help改变了。下面是上述几个labview版本关于timeout ms输入的描述:
Labview 6.0----timeout ms的单位是毫秒。如果操作无法在设定的时间内完成,VI结束同时返回一个错误。默认值为25000。当设置为-1时表示无限等待。
Labview 6.1----timeout ms的单位是毫秒。如果连接无法在设定的时间内建立,VI结束同时返回一个错误。当设置为-1时表示无限等待。
Labview 7.0----timeout ms的单位是毫秒。如果在设定的时间内没有收到任何数据,函数结束同时返回一个错误。默认值为25000。
下面的描述对所有的版本而言都是完整、正确的描述:
timeout ms的单位是毫秒。如果在设定的时间内没有收到任何数据,函数结束同时返回一个错误。默认值为25000。当设置为-1时表示无限等待。
参考Labview Help中的UDP Read 函数主题了解更多的信息。
同时,在Labview 8.0或者更早的版本中,查阅Labview Help中 Fundamentals»Using LabVIEW with TCP/IP and UDP 中的内容以了解更多的信息。在Labview 7.1或者更早的版本中,查阅Labview Help中 Help»Search the LabVIEW Bookshelf 中的“Using LabVIEW with TCP/IP and UDP ”文档以了解更多的信息。
|