Table Of Contents

Enqueue Element At Opposite End (G Dataflow)

Last Modified: January 9, 2017

Adds an element to the front of a queue.

This node is similar to Enqueue Element. If the queue is full, the node waits timeout in milliseconds before continuing. If queue becomes invalid (for example, the queue reference is released), the node stops waiting and returns error code 1122.

Queues typically use a first-in-first-out flow of data. In rare situations, you might want to interrupt this normal flow of data by adding an element to the front of the queue. After you add an element to the front of a queue, the next Dequeue Element node you call removes the element you added to the front. For example, you could use this node if you want to use the queue as a stack structure or add high-priority elements to the front of the queue.

connector_pane_image
datatype_icon

queue

A reference to a queue. Use Obtain Queue to obtain a queue reference.

datatype_icon

element

The element you want to add to the front of the queue. This data type changes to match the subtype of queue.

datatype_icon

timeout in milliseconds

Time, in milliseconds, that the node waits for available space in the queue if the queue is full. The default is -1, indicating never to time out. If the node waits timeout in milliseconds and the queue remains full, timed out? is True.

Default: -1

datatype_icon

error in

Error conditions that occur before this node runs. This input provides standard error in functionality.

datatype_icon

status

A Boolean that returns TRUE (X) if an error occurred before this node ran or FALSE (checkmark) to indicate a warning or that no error occurred before this node ran.

Default: FALSE

datatype_icon

code

The error or warning code. If status is TRUE, code is an error code. If status is FALSE, code is 0 or a warning code.

Default: 0

datatype_icon

source

Origin of the error or warning and is, in most cases, the name of the node that produced the error or warning.

Default: empty string

datatype_icon

queue out

A reference to the queue unchanged.

datatype_icon

timed out?

A Boolean that returns TRUE if space in the queue did not become available before the node times out or if an error occurred.

datatype_icon

error out

Error information. This output provides standard error out functionality.

datatype_icon

status

A Boolean that returns TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

datatype_icon

code

The error or warning code. If status is TRUE, code is an error code. If status is FALSE, code is 0 or a warning code.

datatype_icon

source

The origin of the error or warning and is, in most cases, the name of the node that produced the error or warning.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported


Recently Viewed Topics