LoadHistoryToTag

Parent Previous Next

LoadHistoryToTag

Loads the historic values of one Tag to another to work with them.


Syntax:

Void LoadHistoryToTag(string startDate, int daysCount, string sourceTagName, string targetTagName, long numberOfValues);

Params:

String startDate: A string parameter containing the start date (DD/MM/YYYY) for the history research.

int daysCount: A Integer parameter containing the number of days that must be considered from the initial date chosen (startDate).

String sourceTagName: A string parameter that contains the name of the tag that will be historic uploaded to target tag.

String targetTagName: A string parameter that contains the name of the tag that will receive the values loaded.

long numberOfValues: A long parameter that contains the number of values to be loaded.


Example:

Load 7 values of @tagA, from 12/06/2015 until 18/06/2015, to @tagB.

  


SVHistory.LoadHistoryToTag("12/06/2015, 7, "tagA", "tagB", 7);