1 of 1 people found this helpful
Do you have AF and Asset Based Analytics installed on your server?
If yes, you could generate event frames to persist when turbine is faulted / stopped / running into events. Then you can use these events for reporting and for your notifications.
This is a very common usage for event frames.
To get started with event frames you may look here:
Once you have your event frames, you can access them using AFSDK by either using PI ACE or a .NET code of your own:
- Get event frames that correspond to your criterias (i.e. Specific Turbine + Specific event: Faulted)
- Sum up the duration of all event frames to get the result for the period you are interrested in.
if you cannot use event frames, you will have to persist the results of TimeEq into memory and on the disk from time to time and build a logic so you don't query the entire period on each calculation.
Once we know if you can use AF we can start looking into code samples.