AnsweredAssumed Answered

Maximum 15 Minute Rolling Average of three tags.

Question asked by KentChan on Jan 4, 2019
Latest reply on Jan 7, 2019 by sraposo

Hi there,

 

I'm trying to get a  the maximum 15 minute average of the sum of three tags using PI DataLink.  What I have so far is getting the 15 minute average of 1 tag using:

 

PIAdvCalcExpVal("TagAvg('Sinusoid1','*-15m','*')","*-1w","*","maximum","time-weighted","interpolated","15s",0,1,0,"")

 

Somehow I would like to sum all three tags (let's say: Sinusoid1, Sinusoid2, Sinusoid3) before doing the maximum 15 minute rolling average.  I tried using Total('Sinusoid1','Sinusoid2','Sinusoid3') inside the TagAvg function but I get an error... 

 

Or is there a better way with  PI Datalink?  I don't want to touch PI AF right now.

Outcomes