Valid URLs for a DataSocket Connection

You can use the following protocols when you publish or subscribe to data using DataSocket:

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
opc opc:\National Instruments.OPCTest\item1

opc:\\machine\National Instruments.OPCModbus\Modbus Demo Box.4:0

opc:\\machine\National Instruments.OPCModbus\Modbus Demo Box.4:0?updaterate=100&deadband=0.7
logos logos://computer_name/process/data_item_name
ftp ftp://ftp.ni.com/datasocket/ping.wav
file file:ping.wav

file:c:\mydata\ping.wav

file:\\machine\mydata\ping.wav

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.