This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Problem with trends
#1
Good evening,
I can't understand what happen to my trends, a totally incorrect data and also the transition from uint to float.
Let's talk about the last column which is the sum of the previous 9 columns. The sum is done by an event script that I attached.
Do you have any suggestions?

Are the trends data editable manually for change the wrong data?

And if it is possible to change the data what program can i use for modify .trend?

Code:
-- acquisizione energia ad ogni variazione

sirio1 = grp.getvalue('40/0/74')
sirio2 = grp.getvalue('40/1/74')
sirio3 = grp.getvalue('40/2/74')
sirio4 = grp.getvalue('40/3/74')
sirio5 = grp.getvalue('40/4/74')
sirio6 = grp.getvalue('40/5/74')
sirio7 = grp.getvalue('40/6/74')
sirio8 = grp.getvalue('40/7/74')
sirio9 = grp.getvalue('41/0/74')

-- somma energia

sum1 = sirio1 + sirio2 + sirio3 + sirio4 + sirio5
sum2 = sirio6 + sirio7 + sirio8 + sirio9

tot = sum1 + sum2

grp.write('63/7/2', tot)

Attached Files Thumbnail(s)
       
Reply
#2
What type of trend is this?
------------------------------
Ctrl+F5
Reply
#3
Check this thread: https://forum.logicmachine.net/showthrea...6#pid33316
Don't forget to make a backup before running this script.
Reply


Forum Jump: