« Zurück zu Produkt

Dokumentation

AC_SetAggregationType

Benötigt: IP-Symcon >= 3.0

 boolean AC_SetAggregationType (int $InstanzID, int $VariablenID, int $Aggregationstyp) 

Parameterliste

InstanzID

ID zum Archiv

VariablenID

ID der Variable bei der der Aggregationstyp gesetzt werden soll

Aggregationstyp
Aggregationstyp Description
0 Standard
1 Counter

Rückgabewert

True wenn erfolgreich, sonst False

Beschreibung

Diese Funktion setzt den Aggregationstyp Aggregationstyp bei der Variable mit der ID VariablenID

Warning

Im Anschluss ist eine Reaggregation der Variable nötig.

Beispiel

// Setzt den Aggregationtyp der Variable "TestVariable" auf 1 (Zähler)
AC_SetAggregationType(39147 /*[Archive]*/, 53716 /*[TestVariable]*/, 1);
Haben Sie noch Fragen?