André Åsheim

AF Analysis calculation samples

Blog Post created by André Åsheim Champion on Mar 13, 2015

Primarily as a note to self


Weekday start on Monday

If (Weekday('*') = 1) then 7
else Weekday('*')-1



Time Greater than "event based" - Timer when active

LastStop output to attribute "Last Stop" (Date Time)

LastStart output to attribute "Last Start" (Date Time)

Output output to attribute "Timer" (Double, UOM: Seconds)


LastStop: If('Attribute1'<50)then ParseTime("*") else NoOutput() 

LastStart: FindGE('Attribute1','Last stop','*',50

Output: if('Attribute1'>50) then TimeGE('Attribute1','Last start','*',50) else 0