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

AVEVA™ Plant SCADA

MsgClose

  • Last UpdatedJul 18, 2023
  • 1 minute read

Closes a message. After the message is closed, the message post function (the callback function specified in the MsgOpen() function) is not called if a message is received. When the server side is closed, all clients are closed. When the client side is closed, only the specified client is closed.

Syntax

MsgClose(Name, hMsg)

sName:

The name of the Plant SCADA server.

hMsg:

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

Return Value

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

MsgOpen, MsgRead, MsgWrite, MsgRPC

Example

MsgClose("Alarm",hMsg);

See Also

Task Functions

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