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.

Average value
#1
Hello

I tried to make a simple script to check the average value on 8 values.

T1 = grp.getvalue('26/0/100')
T2 = grp.getvalue('26/0/101')
T3 = grp.getvalue('26/0/102')
T4 = grp.getvalue('26/0/103')
T5 = grp.getvalue('26/0/104')
T6 = grp.getvalue('26/0/105')
T7 = grp.getvalue('26/0/106')
T8 = grp.getvalue('26/0/107')
AV = math.round((T1 + T2 + T3 + T4 + T5 + T6 + T7 + T8) / 8, 0)
grp.write('27/7/12', AV)

But not getting any value updates on the 27/2/12 GA. 

So is it correct to put this in event-based script or should it be something else. And what is the correct GA/TAG to put in the main window?
Reply


Messages In This Thread
Average value - by Tokatubs - 18.02.2019, 12:12
RE: Average value - by admin - 18.02.2019, 12:37

Forum Jump: