You can use the following protocols when you publish or subscribe to data using DataSocket:
DataSocket Transport Protocol (dstp)The native protocol for DataSocket connections. When you use this protocol, the VI communicates with the DataSocket server. You must provide a named tag for the data, which is appended to the URL. The DataSocket connection uses the named tag to address a particular data item on a DataSocket server. To use this protocol, you must run a DataSocket server.
WindowsOLE for Process Control (opc)Designed specifically for sharing real-time production data, such as data generated by industrial automation operations. To use this protocol, you must run an OPC server.
WindowslogosAn internal National Instruments technology for transmitting data between the network and your local computer.
File Transfer Protocol (ftp)You can use this protocol to specify a file from which to read data.
fileYou can use this protocol to provide a link to a local or network file that contains data.
The following table shows examples of each protocol URL.
URL
Example
dstp
dstp://servername.com/numeric, where numeric is the named tag for the data
Use the dstp, opc, and logos URLs to share live data because these protocols can update remote and local controls and indicators. Use the ftp and file URLs to read data from files because these protocols cannot update remote and local controls and indicators.
Refer to the examples\comm\datasktx.llb for examples of using DataSocket connections.