Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

QueClose

  • Last UpdatedJul 18, 2023
  • 1 minute read

Closes a queue opened with the QueOpen() function. All data is flushed from the queue.

If a Cicode task is waiting on the QueRead() function, it returns with a "queue empty" status. You should close all queues when they are no longer required, because they consume memory. At shutdown, Plant SCADA closes all open queues.

Syntax

QueClose(hQue)

hQue:

The queue handle, returned from the QueOpen() function. The queue handle identifies the table where all data on the associated queue is stored.

Return Value

0 (zero) if successful, otherwise an error code is returned.

QueLength, QueOpen, QueRead, QueWrite, QuePeek

Example

hQue=QueOpen("MyQue",1);

...

QueClose(hQue);

See Also

Task Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in