Read Single Element from Stream

Reads a single element from a network stream. You can call this function from the reader endpoint only.


icon

Inputs/Outputs

  • cgenclassrntag.png endpoint in

    endpoint in specifies the reference to the endpoint. Obtain this reference by wiring the reader endpoint output of the Create Network Stream Reader Endpoint function to this input.

  • cpoly.png data type

    data type specifies the data type of the stream. Wire a constant or control to this input of the same data type as the data type input on the Create Network Stream Writer Endpoint function.

  • ci32.png timeout ms (-1)

    timeout in ms is the time, in milliseconds, that this function waits for the data. The default is –1, which means the function waits indefinitely.

  • cerrcodeclst.png error in (no error)

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

  • igenclassrntag.png endpoint out

    endpoint out returns endpoint in unchanged.

  • ipoly.png data out

    data out returns the data this function reads from the stream. If timeout in ms expires before this function receives data, this terminal returns the default value for the data type you configured with the data type terminal of this function or the Create Network Stream Reader function.

  • ibool.png timed out?

    timed out? returns TRUE if the timeout period elapses before this function reads the data.

  • ierrcodeclst.png error out

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