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

AVEVA™ Historian

aaSetTagStorage

  • Last UpdatedMar 18, 2021
  • 1 minute read

Sets storage on or off from various level of the tag definition.

Syntax

aaSetTagStorage Type, List, Set

where:

Argument

Description

Type

The level at which the new storage rule will be set for the tag definition.

1 = I/O Server

2 = Topic

This value is of data type tinyint, with no default.

List

If the type is an I/O Server, topic or public group, the IDENTITY key(s) of the relevant type. If the type is a tag, a list of tagnames separated by commas. This value is of data type nvarchar(4000), with no default.

Set

Used to set storage on or off. Valid values are:

  • ON

  • OFF

    This value is of dataype varchar(3), with no default.

Remarks

This stored procedure applies to analog, discrete, string and complex tag types.

Permissions

Execute permission defaults to the aaAdministrators and aaPowerUsers groups.

Examples

The following example turns data storage off for all tags associated with I/O Servers that are identified by the IOServerKeys 2 and 3.

aaSetTagStorage 1, '2,3', 'OFF'

The following example turns data storage on for the listed tags.

aaSetTagStorage 3, 'Tag1, Tag2, Tag3', 'ON'

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