As an user, I want to be able to get summaries of an event frame such as count, total duration, total of event frame attributes so that I can characterize the event.
ADMIN RESPONSE
Aug 20, 2022
This is in PI Server 2017 R2, available now on https://techsupport.osisoft.com/
It would be useful to be able to have an attribute that counts the number of event frames over a given period. For example I may want to generate an event frame to indicate when there is a loss of communication with the SCADA/DCS. Then on a PI Vision display show the number of such events over a given period.
HI Simon Dyson,
I have the exact same need as yours.
Did you find a solution? I want to write the event frames' count in the element where the analysis occurs.
Thanks.
In response to Etienne Baras, "HI Simon Dyson, I have the exact same ne..."
Etienne,
In the end the requirement went away, but it is still something that would be useful as part of the standard product.
My thought now is that to provide this functionality you could write a custom Data Reference that returns the event frame count based on a config string to specify the scope of the search. I have written custom Data References in the past and its not that hard to do if you follow the examples that OSI provide.
Regards
Simon
Question - is the count of the EF a one time thing or does this count increment with time? If this count increments with time, the 2017 R2 release added the capability for event frame analyses to output to a PI Point when the event frame closes. Therefore you can use this feature to increment a count.
In response to Stephen Kwan, "Question - is the count of the EF a one ..."
Stephen,
You would want to just get a count of all events frames over a period of time that match a give criteria.
I cannot see any reference in the PSE User Guide that refers to the ability to write to a PI Point when an event frame closes. And I also see nothing in PSE itself. Can you point me at the page where this is described?
Simon
In response to Simon Dyson, "Stephen, You would want to just get a co..."
Hi Simon,
So it sounds like what you're doing is a search (all event frames that match a given criteria over a period of time). This would not be something that you do with streaming analytics so it would not be a good candidate for an analysis. In the screen shot below, I'm showing all the EF search criteria that you can use. Does this serve your needs?
In terms of writing out to an attribute when EF closes (created and closed by an analysis), here's the relevant info in LiveLibrary:
PI Server
--
Steve Kwan
In response to Stephen Kwan, "Hi Simon, So it sounds like what you're ..."
Stephen,
Ok thanks. It looks very useful.
I had not seen this before. It must be something new in 2017 R2?
Simon
In response to Simon Dyson, "Stephen, Ok thanks. It looks very useful..."
Simon,
Yes, writing out the EF attributes with analysis was a new feature in the 2017 R2 release.
--
Steve Kwan
The use case is an overview display in Vision that shows equipment status. The user wants to show for a piece of equipment the number of event frames - but including active ones for the current time range of the Vision display. What would be the means of getting a count of active ones?