LabVIEW中以Datasocket作为OPC客户端进行数据连接传输时产生错误
主要软件:
主要软件版本: 8.0
主要软件修正版本: N/A
次要软件: LabVIEW Development Systems>>LabVIEW Full Development System, LabVIEW Development Systems>>LabVIEW Base Development System
问题: 我尝试以DataSocket作为OPC的客户端,但是却出现了以下的错误信息,我该如何修正他们?
- I我运用DataSocket,以一个OPC源绑定了LabVIEW前面板上的一个控件。然而当我选择列表下的OPC server时,我收到了以下的错误信息:
NI Network Browser Error!
The connection to the server failed!:
error code - 0x80004002
No such interface supported
An OPC interface could not be found
Ensure that the latest opcproxy.dll
is installed and that it has been registered
- I我尝试运行一个OPC数据传输范例,但却接到错误报告 "Error Reading Items"。错误簇中的详细错误信息如下:
Error -2147467262 occurred at DataSocket Connect.vi
Error: Can't connect to OPC Server.
解答: 被OPC server识别列举出来的DataSocket的组件还未在您的系统中被正确注册。 有一种常见的引起这种错误的情况是在Windows 2000的操作系统下安装了LabVIEW 8.0,但同时却没有安装任何OPC server。为了能够将DataSocket配置作为OPC的客户端,您需要手动的注册
opcproxy.dll这个文件。您可以通过运行以下命令来完成注册:
regsvr32 "C:\WINNT\system32\opcproxy.dll"
注: 指向system32文件夹的路径必须有别于您主机中本来就有的文件夹地址。如果以上的命令运行错误,请查询关于opcproxy.dll的硬件驱动并修正该路径。
相关链接: Developer Zone Tutorial: Connecting LabVIEW to an OPC Server through a DataSocket Connection
附件:
报告日期: 10/27/2005
最近更新: 08/25/2010
文档编号: 3QALE2V9
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.