2 of 2 people found this helpful
No, unfortunately you can't.
What is the process that users actually add annotations to the PI Points? Can you change this process to add these to an attribute or EventFrame?
EvenFrames also support annotations / comments.
As Roger Palmen mentioned, it is not possible to set PI tag event's annotation to the Event Frame's attribute by standard function.
If you really want to achieve it, creating custom application is one possibility to achieve it.
Using AFSDK, it is possible to read/write annotations.
Remember that PI tag event's annotation is quite old. Also if there are a huge number of annotations, it might causes performance issue.
If you use Event Frames, basically Event Frame's annotations is a good way.
You can add Event Frames annotations by PI Vision's comment feature or AFSDK, PI Web API, PI OLEDB Enterprise...
Thanks for replies.
Yes, annotations are possible with event frames. But, our users entering data into a system which has been in-place for a long time and we are reading those values into tags except remarks because don't want to create a another tag for it hence reading comments as annotation to one of the tags. We don't intend to change process at this moment.
Since the standard function does not support it, is it possible to create custom application to achieve it?
Using AFSDK's AFValue.GetAnnotation Method to read annotation and write it to the attribute. Is it possible?
Maybe the other possibility is AF's custom data reference.
You can customize to read PI tag's annotation. Then attribute can have annotation value. (It is not related to Event Frame though)
See following documents.
Supporting File for Implementing AF 2.x Data References
Implementing AF 2.x Data References
We don't want to create custom applications/ custom data reference and wanted to if utilize if there is standard functions available to achieve this. hopefully, next release of AF will have this.
Adding to the discussion, I am wondering how this would work? Can you help explain this more? An Annotation is not written to a PIPoint. Rather it is written to an AFValue. For an event frame, there may be many PIPoints and each PIPoint could have many AFValues within the time range of the event frame. If there are multiple AFValues, which one is used to provide an Comments attribute?