Write With Abort Endpoint

Requires: Base Development System

Writes a value to a Tag channel or signals the channel to abort. This endpoint is the same as the Write endpoint except that it has an abort input and an aborted? output. You can use the abort capability of the Tag channel to close a channel abruptly, ignoring any data left in the channel buffer. You must use this endpoint together with the Read With Abort endpoint.

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

Details  Examples

element specifies the data to write to the channel.
abort specifies whether to abort this channel. If abort is TRUE, this endpoint will not perform further write operations until the whole channel is reset. Reset occurs when the common caller VI of both the writer endpoint and the reader endpoint begins another iteration.
previous element returns the value of the channel before this endpoint updates the channel. This output returns the default value of the transmission data type if the channel aborts.
channel is the channel wire that connects this endpoint to a reader endpoint.
aborted? returns TRUE if abort occurred on this endpoint or the reader endpoints connected to the channel. If aborted? is TRUE, further calls to this endpoint will do nothing except returning aborted? TRUE again.

Write With Abort Details

Related Information

Read With Abort

Examples

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