GetSumDCIValue

Deprecated in 6.2.

Please use getSumValue() method of DCI class instead.

GetSumDCIValue(node, dciId, from, to): String

Get the sum value of the DCI for the given period. The DCI value must be of numeric type.

Table 1. Parameters

node

Node

node object instance (e.g. $node)

dciId

Integer

DCI ID

from

Integer

Start of the period (as UNIX timestamp).

to

Integer

End of the period (as UNIX timestamp).

Return

Sum value (as String) or null on failure, if DCI is not found, is a table DCI, or there is no data for the period.

value = GetSumDCIValue(FindObject("MYWORKPC"), 18, 0, time()); //sum value from the beginning till now
println(value); //Prints value