Is there a way to check when a property's value like this one is returning an error or bad reading; I mean a function or formula that can be used to send email alerts whenever this such situation happens?
You can use analysis BadVal function to check value and write any output attribute.
a) If BadVal('C2') Then " Reason Code" Else 'C2'
b) If 'C2'= "Error" Then "Reason Code" Else 'C2'
If requirement says write digital state as an output you may use DigState functional to write any system digital states.
As per the attached screen shot, looks like PI Point is mapped AF attribute and not configured in AF analysis as an ouput tag. Could you please check the PI point configuration using SMT or PI Builder i.e. instrument tag /exdesc desc information if it is receiving data from source system?
Sorry, I forgot to mention that error value is normal and expected due to shutdown, my question is how to check from a formula or analysis so I can update another attribute with something like 'reason' code.
Adding, if you want to send Email, PI Notification can be used. The latest PI Notification requires to create Event Frames. So you can use BadVal function as a start trigger.
After configuring PI Notifcations, you can see the history by EF search (PI Vision, PI DataLink etc)
Retrieving data ...