Read Endpoint

Requires: Base Development System

Reads a value from a Tag channel.

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

Details  Examples

timeout in ms is the time, in milliseconds, that this endpoint has to read the elements from the channel. The default is 0.

0 or moreThe endpoint waits for a new element but no longer than the specified number of milliseconds.
-1The endpoint waits until a new element is written since the last time the endpoint read from the channel.
channel is the channel wire that connects this endpoint to a writer endpoint.
missed returns the number of times that the element from the channel has been overwritten.

-1The element has not been overwritten since the last successful read operation. Or the element has not been written at all if this is the first time the element was read. Or the channel was aborted from any endpoint.
0The element is newly written since the last successful read, even if the newly written element is the same as the previous element.
positive numberThe element has been overwritten the specified number of times between this endpoint's last read operation and this read operation.
element returns the data that this endpoint reads from the channel. If a timeout occurs or the channel aborts, the data will be the last value that this endpoint reads from the channel.

Read Details

Related Information

Write

Examples

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