Skip to content

Files

Latest commit

bfbd2c6 · Feb 9, 2022

History

History
29 lines (24 loc) · 685 Bytes

getmaxdcivalue.adoc

File metadata and controls

29 lines (24 loc) · 685 Bytes

GetMaxDCIValue()

GetMaxDCIValue(node, dciId, from, to) => String

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

Table 1. Parameters

node

[class-node]

node object instance (e.g. )

id

Integer

DCI ID

from

Integer

Start of the period (as UNIX timestamp).

to

Integer

End of the period (as UNIX timestamp).

Return

Maximum value or null on failure.

Example
value = GetMaxDCIValue(FindObject("MYWORKPC"), 18, 0, time()); //Max value from the beginning till now\
println(value); //Will print maximum value