DataSocket Read

Reads the data from the connection specified in URL and returns the data, which you can publish to another front panel object or pass to another function. The connector pane displays the default data types for this polymorphic function.

URL identifies the data source to read. URLs begin with the name of the protocol you want to use to read the data, such as dstp, opc, logos, ftp, and file. You can use the file protocol to read a URL from a DataSocket Link (DSL) file instead of storing the URL in the VI that reads the data from the server. If you use the file protocol to read a URL from a DSL file, you must wire the data type of the data you expect to read to type.

Refer to the Specifying a URL section in Chapter 17, Networking in LabVIEW, of the LabVIEW User Manual for more information about protocol URLs.

type (Variant) specifies the type of data to be read and defines the type of the data output terminal. The default type is a Variant, which can be any type.
ms timeout specifies how long to wait for a value update. This time is ignored if wait for updated value is false and an initial value has arrived. The default is 10 seconds.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurs before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
wait for updated value waits for an updated value when true. If the value has been updated since the last read, the function returns immediately. Otherwise, the function waits ms timeout milliseconds for an update. If an update does not occur in the timeout period, the current value is returned and the timed out result is true. When false, the function returns the current value of the data. The timeout is only used if no value has yet arrived.
duplicate URL is the URL that specifies the DataSocket connection.
data is the result of the read. If the function times out, the value returned is the same as the value that was last read. If the function times out and nothing has been read or the type of the data is incompatible, the value of 0, empty, or their equivalent will be returned.
timed out returns TRUE if the function timed out waiting for an update or an initial value.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.