Requires: Base Development System
Reads multiple elements as a block from a Stream channel. You can configure how and when the channel waits for multiple elements.
You can drop this endpoint on the block diagram by right-clicking a Stream channel terminal or wire and selecting Create»Channel Reader»Stream»Read Multiple.
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. | |||||||
number to read specifies the number of elements the endpoint returns each time. The default is -1.
|
|||||||
timed out? returns TRUE if the amount of time specified by timeout in ms elapses. If timed out? is TRUE, last element? will be FALSE. | |||||||
elements returns the array of data that the endpoint reads from the channel. This output returns an empty array if the channel aborts. | |||||||
last element? returns whether this is the last element that the endpoint reads from the channel. last element? can be TRUE even if element valid? is FALSE, which means that the last element was already written to the channel during the previous iteration or the channel closes without a valid last element. This output returns FALSE if a timeout occurs or if the channel aborts. | |||||||
count returns the number of elements in the channel after this endpoint updates the channel. Use this output to monitor the relative writing and reading speed of the channel endpoints and make adjustments, if necessary. |
Refer to the Channel - String Processing.lvproj in the labview\examples\Channels\Stream String Processing directory for an example of using the Read Multiple endpoint.