Documentation
AC_SetAggregationType
Require: IP-Symcon >= 3.0
boolean AC_SetAggregationType (int $InstanceID, int $VariableID, int $Aggregation_Type)
Parameters
| InstanceID | ID for the archive |
||||||
| VariableID | ID of the variable for which the aggregation type is to be set |
||||||
| Aggregation_Type |
|
Returns
True if successful, otherwise False
Description
This function sets the aggregation type AggregationType for the variable with the ID VariableID
Afterwards a reaggregation of the variable is necessary.
Example
// Sets the aggregation type of the "TestVariable" variable to 1 (counter)
AC_SetAggregationType(39147 /*[Archive]*/, 53716 /*[TestVariable]*/, 1);