18.01.2021, 06:44
Hi,
I'd probably do it something like this:
Tag both Powerin and powerout objects with something like COP and have the script execute if the group is triggered.
Powerin = grp.getvalue('1/1/2')
Powerout = grp.getvalue('3/1/5')
COP = Powerout / Powerin
if COP > 0 then grp.checkwrite('2/0/157', COP, 1)
end
I'd probably do it something like this:
Tag both Powerin and powerout objects with something like COP and have the script execute if the group is triggered.
Powerin = grp.getvalue('1/1/2')
Powerout = grp.getvalue('3/1/5')
COP = Powerout / Powerin
if COP > 0 then grp.checkwrite('2/0/157', COP, 1)
end