From Thursday, May 23rd (05:00 PM CDT) through Friday, April 24th (1:30 AM 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.



如何利用Datasocket连接OPC Server



主要软件: DataSocket
主要软件版本: 4.0
主要软件修正版本: N/A
次要软件: N/A

问题: 我了解我可以通过Datasocket与OPC Server进行通信,那么我如何连接和断开服务器呢?

解答: DataSocket 帮您处理了上述工作。只要在DataSocket 读或写VI中(参见如下范例:dsopc.vi)输入一个有效的OPC地址即可。连接OPC Server的第一步是Datasocket通过调用一个相应的OPC server来建立连接。如果您使用Windows 2000/XP,您会看到相应OPC server会以进程方式运行。当VI停止时,进程也随之停止。

相关链接: Developer Zone Tutorial: Connecting LabVIEW to an OPC Server through a DataSocket Connection
KnowlegeBase 4T1J6TMO: What Is The Difference Between Using Shared Variables And DataSocket VIs To Access OPC Tags?
KnowledgeBase 1JHG366Y: How Is the URL Built in DataSocket, and How Is It Used in LabVIEW?

附件:


dsopc.vi - dsopc.vi



报告日期: 10/01/2003
最近更新: 12/07/2009
文档编号: 320BS5OP