I don't believe there is any way to access the Questionable flag from AF directly. You can use OLEDB or the SDK to get the Questionable flag. There are some more details in this thread on developer's club if you are interested.
4 of 4 people found this helpful
You can try using the IsSet function . It determines whether the Pi Value is annotated , substituted, or questionable.
For example : For determining whether the Pi Point mapped to AF attribute is Questionable or not you can use
This will result True if the value is questionable else False.
Lemme know if this works for you.
Thanks and Regards,
My vote is still on an extended PI Point DR that can return the other attributes of PI Points: flags, annotations, PCTgood, etc. One could create a custom DR for that.
2 of 2 people found this helpful
I agree with you on that, Roger - but you've got to think context here as well.
If you're creating a monitoring tool or a system solely for the purpose of monitoring the tag data quality of another system, I'd say go for it! Especially if you're able to develop it yourself (or at least in-house). But if the application is more in the range of "I have a few tags which always seem a bit dodgy so I'd like to set up a quick check" or if you don't have developer resources available you should get pretty far using analytics and the IsSet function.
Cannot agree more! Sound decision criterium.
Thank you Roger and Akash for your responses. While both solutions would likely work, Akash's is exactly what I was looking for. I wanted a "quick and dirty" way to achieve this natively on the AF server side without having to write any code. AF Analytics works perfectly and I can even write the value back to a new PI tag using the PI Point creation of my output attribute, which is a nice bonus for my particular application.