Writes data to the connection you specify in connection in.

The connector pane displays the default data types for this polymorphic function.


icon

Inputs/Outputs

  • cstr.png connection in

    connection in identifies the data item to write. connection in can be a string that describes the url or a shared variable control.

  • cunclst.png data

    data is the data written to the connection. data can be in any format or LabVIEW data type.

  • ci32.png ms timeout (0)

    ms timeout specifies the number of milliseconds the function waits for the pending operation to complete.

    The default is 0, which means the function does not wait for the operation to complete. Use a timeout value of –1 to make the function wait until the operation completes. Currently, only the opc on Windows and the dstp and file protocols on all LabVIEW-supported platforms support nonzero timeout values for this function. You must enable synchronous notifications to use a nonzero timeout value with the psp protocol. When you enable synchronous notifications, the function waits until the operation completes or the timeout expires. You must append ?sync=true to the end of the psp URL to enable synchronous notifications and allow nonzero timeout values for write operations. Enabling synchronous notifications can cause slower performance, particularly on RT targets.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • istr.png connection out

    connection out is the data source that specifies the data connection.

  • ibool.png timed out

    timed out returns FALSE if the operation completed within the timeout interval with no errors. If ms timeout is 0, timed out is FALSE.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Data Communication\DataSocket\Simple DataSocket\Simple DataSocket.lvproj