Logic Machine Forum
Incorrect trend log - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Incorrect trend log (/showthread.php?tid=1646)



Incorrect trend log - ninomathew - 11.10.2018

Hi,

I am trying to log the trend of power consumption in a house every 15 minutes. Value of power consumption is set to a user parameter and those values are absolute. But the log sometimes logging values which is different from the value set on to user parameter.

My assumption about trend log was, its just capturing the values from its assigned object at every specified time interval.

But from the values which I got, I see the trend log itself is sampling / averaging the values set on its object. This could be the reason for incorrect values on my trend log.


For ex: if the value set on object is 650, log value on trend is 642.31 ( expectation was 650 on trend log)

Is that correct? Do you sense something wrong in that?


RE: Incorrect trend log - Erwin van der Zwart - 12.10.2018

Hi,

In this case you should set the aggregate function to “last value”

BR,

Erwin