How Do I Connect to an OPC Server Using DataSocket? Primary Software: Other NI Software>>DataSocketPrimary Software Version: 4.2 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 with 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:
Attachments:
Report Date: 10/01/2003 Last Updated: 08/25/2007 Document ID: 320BS5OP |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
