Write Multiple Endpoint

Requires: Base Development System

Writes an array of elements to a Stream channel, one element at a time. The endpoint waits if the channel is full.

You can drop this endpoint on the block diagram by right-clicking a terminal or a wire and selecting Create»Channel Writer»Stream»Write Multiple.

Details  Examples

timeout in ms is the time, in milliseconds, that this endpoint has to write one data element in the specified array to the channel. The default value is -1, which means there is no time limit.
elements specifies an array of data to write to the channel.
last element? specifies whether this is the last array of data that the endpoint writes to the channel. The default is FALSE. If TRUE, the endpoint marks the channel as closed after writing the last element in the array and ignores further calls to write. The reader endpoint can continue reading data until the last element? output of the reader endpoint returns TRUE.
size specifies the maximum number of elements that can be buffered in the channel. The default is unlimited. The channel size is initialized on the first call to the writer endpoint, after which the endpoint ignores the size input.
timed out? returns TRUE if the amount of time specified by timeout in ms elapses before the endpoint writes the array of data specified in elements to the channel.
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.
channel is the channel wire that connects this endpoint to a reader endpoint.
number unwritten returns the number of elements in the array that are not written to the channel. This output will always be zero unless the endpoint times out before finishing writing all the elements in the array.

Write Multiple Details

Related Information

Read Multiple

Examples

Refer to the following VIs for examples of using the Write Multiple endpoint: