-
Re: Read PI Point annotation into a comments attribute while creating a event frames
Roger Palmen Nov 7, 2017 8:09 AM (in response to Srinivas)2 of 2 people found this helpfulNo, 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.
-
Re: Read PI Point annotation into a comments attribute while creating a event frames
Kenji Hashimoto Nov 14, 2017 6:41 AM (in response to Srinivas)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.
AFValue.GetAnnotation Method
AFValue.SetAnnotation Method
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...
-
Re: Read PI Point annotation into a comments attribute while creating a event frames
Srinivas Nov 14, 2017 8:38 AM (in response to Kenji Hashimoto)Hi,
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.
Regards
Srinivas
-
Re: Read PI Point annotation into a comments attribute while creating a event frames
Kenji Hashimoto Nov 14, 2017 8:50 AM (in response to Srinivas)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
https://techsupport.osisoft.com/Downloads/File/bbf2179a-6415-4985-9644-9d8e86bd31d0
Implementing AF 2.x Data References
https://techsupport.osisoft.com/Downloads/File/5cbefb97-d253-46dd-b369-f36cda374e47
-
Re: Read PI Point annotation into a comments attribute while creating a event frames
Srinivas Nov 14, 2017 9:40 AM (in response to Kenji Hashimoto)Thanks..
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.
Regards
Srinivas
-
-
-
-
Re: Read PI Point annotation into a comments attribute while creating a event frames
Rick DavinNov 14, 2017 12:30 PM (in response to Srinivas)
Hi Srinivas,
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?