Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Sum - method of the tvPoints object

Description:
Returns the sum calculated from values according to the sFilter parameter.
Syntax:
Double Sum(String sFilter)
Parameters:
sFilter(String) Filter of values that are to be included into the processing.
"all" - All values in the buffer.
"visible" - All values that are in the time of calling the method in the visible part of the buffer.
See also:
- tvPoints.Max (method)
- tvPoints.Avg (method)
- tvPoints.Count (method)
- tvPoints.Min (method)
Example1:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe;
var oPoints = oTView.Trends("t1").Points;
var nSum = oPoints.Sum("visible");
Example2:
See the example in the Avg method.
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice