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.

Calculate average value using tag
#1
Hi

I would like to sum up 8 volume values. To know the actual values of the air flow in total. 
Earlier i have used this script with same tag on the adresses and the event script:
T1 = grp.getvalue('xx/x/xxx')
T2 = grp.getvalue('xx/x/xxx')
T3 = grp.getvalue('xx/x/xxx')
T4 = grp.getvalue('xx/x/xxx')
T5 = grp.getvalue('xx/x/xxx')
T6 = grp.getvalue('xx/x/xxx')
T7 = grp.getvalue('xx/x/xxx')
T8 = grp.getvalue('xx/x/xxx')
AV = math.round((T1 + T2 + T3 + T4 + T5 + T6 + T7 + T8) / 8, 0)
grp.write('xx/x/xxx', AV)


Just wondering if there is a simpler way, to do this?
Later using the total actual value on the total 8 supply vav. And converting it into a setpoint for one extract vav. But that is on a later point. 
Reply


Messages In This Thread
Calculate average value using tag - by Tokatubs - 10.06.2021, 10:18

Forum Jump: