1. Is it possible to see the frame before it stops (while it is triggered).
2. Is it possible to listen to those events (start trigger and stop trigger).
Ok, so you are probably using PI Analytics to trigger and not EFgen so evaluation delay does not come into play. On the interface, you can actually evaluate the EF attributes at the end of the EF. Again, this does not apply to you.
Correct, the end time is actually set to the AFTime max value and you can check for it like this. This is considered an "active" or "open" event frame.
if (eventFrame.EndTime == AFTime.MaxValue)
You can determine any AF object that has changed using code similar to this:
List<AFChangeInfo> changeList = (List<AFChangeInfo>)myDB.FindChangedItems(AFIdentity.EventFrame, false, int.MaxValue, myTimeIn, out mytime);
I refresh the the changeList to update any item that might already be in memory. You will get all EF changes and have to write your own code to filter out the items that you are interested in. The objects myTimeIn and mytime out are the cookies used to track when changes were last obtained. Let me know if you have additional questions and I can explain more.
Can you please provide more detail? What is triggering the event frames? If you are using PI Event Frame Generator Interface and have evaluation delay set to the end of the event frame you will not see the event frame until the close.. In AF Analytics you should see the frame created right away.
There are several ways to be notified of an Event Frame start and end. You could use the active points and trigger off of those in the case of Event Frame Generator Interface. You could also use custom code to be alerted of the EF start/stop. Basically you use findchangedItems method can can detect if the EF is new, or if it is updated and take action as required.
Thanks for your reply.
Frames are getting triggered by conditions that I configured like value>24. Nothing special. By delay do you mean "StartTrigger true for"? What do you mean by "evaluation delay set to the end"?
On point#1, I want to know if an Event frame that is triggered can be "searched" even if not triggered to end yet. I wrote some code and I see some frames with End Times such as 9999-12-31 which make me think those are "active" frames that have yet to see the stop condition met.
On point#2, I am looking for example custom code to listen to event frames start/stop. I cannot figure out whose events to listen to? Is this an EF element event?
Retrieving data ...