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

AVEVA™ Plant SCADA

QueWrite

  • Last UpdatedJul 18, 2023
  • 1 minute read

Writes an integer and string onto the end of a queue. The integer and string have no meaning to the queue system, they are just passed from QueWrite() to QueRead(). Queue data is written to the end of the queue. When the data is later read from the queue, it is returned on a first-in-first-out basis.

This function is a blocking function. It will block the calling Cicode task until the operation is complete.

Syntax

QueWrite(hQue, Type, Str)

hQue:

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

nType:

The integer to put into the queue.

Str:

The string to put into the queue.

Return Value

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

QueClose, QueLength, QueOpen, QueRead, QuePeek

Example

QueWrite(hQue,2,"Hello there");

QueWrite(hQue,4,"Help");

See Also

Task Functions

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