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

AVEVA™ Historian

AddAnyTag

  • Last UpdatedNov 17, 2021
  • 1 minute read

The AddAnyTag method verifies and adds a tag to the trend.

Syntax

[Result=] aaHistClientTrend.AddAnyTag(message serverName, message tagName);

Parameters

serverName

The name of the server.

tagName

The name of the tag.

Return Value

Returns True if the tag was added; otherwise returns False.

Remarks

The tag can be on any server. This method first checks if the tag exists before adding it. The AddTag method also adds a tag, but it does not perform the checking and is thus more efficient.

If you specify a server name that is part of the current server list, but is currently disconnected, an attempt is made to connect to the server. If the authentication credentials are correct, the server is logged on, and the tag added.

If you specify a server name that is not part of the current server list, the runtime user is prompted to add the server name to the server list. A False is returned. If you want to suppress the notification, use the SupressErrors property. For more information, see SupressErrors.

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