Previously I was trying to create an alarm using the alert notification profile. Now I’m trying to create an alarm notification but this time by coding it. What I need to do is when a tag is not changing it’s value for 30 seconds it will send a notification. How can I do that by code? What can I use?
here is one way, this is for minutes though. if you look at the datediff expression in the manual, you can see how to change it to seconds. basically you just create an expression tag and reference the .lastchange property of the tag you need to monitor. from there you can just setup a digital alarm on this new tag.
Ok so I did an expression tag and played with the value to see if the code is working… it’s working. Thank You. But it’s still not sending me the notification email I already created an alert notification profile and added recipients, but it’s still not sending the notif email
If you are using the basic email notification profile then you don’t need to worry about the expression group. As long as the notification profile is not filtering out the alert due to the priority then the notification should be sent out when the tag goes into an alert state. Have you toggled the tag in and out of the alert state?