How Do I Connect to an OPC Server Using DataSocket?Primary Software: Other NI Software>>DataSocketPrimary Software Version: 4.0 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I know that I can use DataSocket to communicate with an OPC server, but how do I connect and disconnect to and from the server? Solution: DataSocket handles this functionality for you. Simply enter a valid OPC URL into DataSocket Read or DataSocket Write VIs (see attached example: dsopc.vi). As the first step in accessing an OPC server, DataSocket will establish a connection by launching the relevant OPC server. If you are running Windows 2000/XP, you will see the relevant OPC server running as a process. When the VI is stopped, the process is shut down. Related Links: 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? Attachments:
Report Date: 10/01/2003 Last Updated: 06/05/2009 Document ID: 320BS5OP |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
