I guess that there some options for you to solve this problem. I will give you one using PI Analysis Service and PI Notification.
As you probably know, the PI Point sinusoid updates every 30 seconds. Let’s suppose I want to monitor an attribute that points to this tag and store the results on another attribute called “Sinusoid Status”.
If the last sinusoid update was more than 10 seconds ago, the “Sinusoid Status” attribute should receive value 1. Otherwise, it should receive the value 0.
Using PI Analysis Service through PI System Explorer, an analysis with the following expression is created:
If Second('*') - Second(PrevEvent('Sinusoid','*'))>10 Then 1 Else 0
It is important to choose the “Sinusoid Status” as the output attribute.
Finally, select the periodic option for scheduling and 5 seconds for the periodic time between evaluations and click “OK”.
The sinusoid status value will let you know if the status of the data flow of the sinusoid is valid or not according to what you have in mind. In our case, this tag will keep changing its value from 0 to 1 as sinusoid updates only every 30 seconds.
With the attribute properly configured, you can create a notification to monitor this attribute and send a notification if he value changes from 0 to 1.
You can apply this suggestion to your use case using templates as well!
Hope it helps!
Thank you very much for your reply! Problem solved!...
Based on your idea, now I am using the following sintax:
If Abs(DaySec('*') - DaySec(PrevEvent('NAGUA|NAGUA-Bruto','*')) ) > 20 Then "WARTING: NAGUA is out" else "NAGUA is OK"
I REALLY appreciate your help!!!