reyhane.gh

Using PI Adaptors for StreamInsight

Discussion created by reyhane.gh on Jun 12, 2011
Latest reply on Jun 14, 2011 by Ahmad Fattahi

Hi

 

I am a biginner in PI and streaminsight, I have created a module using ACE whitin which I need to compare the avrage  value of a tag for last 24 hours.  doing it with ACE required a simple code like :

 

If Flow1.Avg("-24h", "*", 0) - Flow1.Value > Flow1.Avg("-24h", "*", 0) * 0.1 Then
            FlowOut.Value = "Bad Data"

 

 

 

I just wonder if it is possible to do the same with StreamInsight ?!

Outcomes