Read Endpoint

Requires: Base Development System

Waits to read an element from a Messenger channel.

You can drop this endpoint on the block diagram by right-clicking a Messenger channel terminal or wire and selecting Create»Channel Reader»Messenger»Read.

Details  Examples

timeout in ms is the time, in milliseconds, that this endpoint has to read the elements from the channel. The default value is -1, which means there is no time limit.
channel is the channel wire that connects this endpoint to a writer endpoint.
ack id specifies the ID number of a message to be acknowledged. This input allows the endpoint to acknowledge receiving the previous message. Use this input as an alternative to the Write Ack endpoint to enable acknowledgement in the channel. You can use Write Ack on every iteration after reading a message, or you can use this input so that the reader endpoint both acknowledges the previous message and reads the next message. The default is 0.
timed out? returns TRUE if the amount of time specified by timeout in ms elapses.
element returns the data to read from the channel.
remaining returns the number of elements that remain in the channel after this read operation.

Read Details

Related Information

Write

Examples

Refer to the following VIs for examples of using the Read endpoint: