COM - dpGetPeriodIntervall()

Query of data point attributes over a specific period. This is a specific function for the Excel report.

Synopsis

dpGetPeriodIntervall (date dtFrom, date dtTo, long iIntervall, long IntUnit, dyn_variant avDpNames, dyn_variant avStatFct, dyn_variant &avValues, dyn_date &adTime);

Parameter

Parameter Description
dtFrom Start time
dtTo End time
iInterval Describes a period
IntUnit Describes a period (is already defined as: 1 = second, 2 = minute, 3 = hour, 4 = week, 5 = day, 6 = month, 7 = year.
avDpNames Data point name
avStatFct Statistical function
avValues Values
adTime Times

Description

The arrays are defined beginning with 0. The element 0 is ignored. For this reason beginning from 1 only valid data is used in a for statement. The result is a two dimensional array which contains at least an empty variant at any time. If there are several values available in an interval step the result is created taking into account the statistical function of the array avStatFct.

Assignment

COM - specific function for the Excel report.