在并行循环结构中使用datasocket时如何设定超时时间?
主要软件:
主要软件版本: N/A
主要软件修正版本: N/A
次要软件: N/A
问题: 在并行循环中使用datasocket对多个连接进行写操作时,如果网络连接突然断掉则程序可能会发生错误。某些循环会对实际输入的超时设置有正确响应,有些可能没有响应
解答: 要保证所有的连接使用相同的超时设定而无视单个的对写操作函数中的超时设定,用户可以在.ini配置文件中设定主超时,具体操作如下:
在.ini配置文件中加入以下一行字:
DSWriteACKBeginInterval=VALUE
VALUE即为用户设定的以毫秒为单位的超时时间,类型为整型
相关链接:
附件:
报告日期: 10/02/2009
最近更新: 09/02/2010
文档编号: 52199HKC
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.