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.
|
这个船舶范例“ Multiple OPC Items Monitor.vi ”包括DataSocket Open Connection VI。这个VI接受Access Mode终端枚举。这个枚举包括Reserved1和Reserved2的数据,也包括其它的数据(读,读/自动更新,写,写自动更新)。无论Reserved1和Reserved2在DataSocket Connect这个VI中被选中都会报错error -2146828283,如下图所示
要避免这个错误的发生就要确保接收到正确的枚举值。这个范例是用来检测OPC服务器的,所以只有“读”“读自动更新”是有效的并且没有错误。Reserved1和Reserved2在LabVIEW 8.2以及后来的版本中被删掉。
|