Create an event frame generation analysis template
- Last UpdatedJan 11, 2023
- 5 minute read
- PI System
- PI Server 2024 R2
- PI Server
In PI System Explorer, you can create an event frame generation analysis template for an element template.
-
In the navigator, click Library.
-
In the Library browser, select the element template where you want to create the analysis template.
-
In the viewer, click the Analysis Templates tab.
The tab lists any analysis templates already defined for the element template.
-
Create a new analysis template for the element template:
-
If no analysis templates exist, click Create a new analysis template to create the first one.
-
Otherwise, click New Analysis Template
to create a new one.
-
-
Enter information to identify the analysis:
-
Name
The name that uniquely identifies this analysis.
-
Description
Optional text that describes the analysis.
-
Categories
Optional category that you can assign to the analysis. Click the list and select the check box next to categories you want to assign or click New to create a new category.
-
Analysis Type
Click Event Frame Generation.
-
-
Optional. Clear the Enable analyses when created from template check box so that the analysis is created in Disabled status.
By default, a new analysis will be created with Enabled status. You must clear the option if you do not want to start the analysis when created.
-
Optional. To temporarily evaluate expressions in the analysis template based on values of a particular element, click the Select an example element link and select an element based on the current element template.
If no elements have been created from the current element template, you must create an element first.
Templates have no concrete data associated with their attributes. You cannot evaluate an expression in an analysis template, unless you borrow attribute values from a specific element.
PI System Explorer sets Example Element to the element you selected.
-
From the Event Frame Template list, select the template for the event frame that this analysis generates.
To create an event frame template, see Create event frame templates. An event frame naming pattern typically includes substitution parameters. For more information on naming pattern, see Naming patterns.
Note: Parameters and in an event frame naming pattern will be evaluated at the end of an event frame when the event frame closes.An attribute value may update at any given time. To avoid confusion, substitution parameter (which resolves to a value of an attribute) in an event frame naming pattern will always be (re-)evaluated in the context of a start of an event frame. Default naming pattern () will be used in the absence of a name or if the event frame name evaluates to a null value.
-
Specify the necessary expressions for the analysis:
-
In the StartTrigger1 row, enter the Boolean expression that specifies the condition that starts an event frame.
-
Optional. Change the default name of the start trigger.
Note: If you change the name of a start trigger from the default name, you must change the names of all start triggers and use unique names for each trigger.
-
Optional. In the True for field, enter the amount of time that the start-trigger condition must be true before the analysis starts an event frame.
Note: Specify a value in the True for field to reduce unwanted event frames caused by momentary fluctuations in input data.
-
Optional. In the Severity field, enter the severity of the trigger.
The choices for severity are: None, Information, Warning, Minor, Major, and Critical. If you have defined multiple start triggers, the one with the highest severity will be the effective start trigger; if all start triggers have the same severity, the first start trigger in the list will be the effective start trigger.
-
Add multiple start triggers by clicking on Add a new start trigger.
For each start trigger, enter a Boolean expression, specify a value for True for and select a value for Severity.
Note: If you have changed the default name of a start trigger, make sure to assign unique names to all the start triggers.
-
Optional. If a different condition ends the event frame, enter the expression in the EndTrigger row. Otherwise, the event frame will close when the start trigger condition is no longer true.
-
Optional. Click Add a new variable to insert a new expression row where you can specify a variable and expression for use in one of the trigger expressions.
-
Optional. Click Add a new output expression to insert a new expression to write outputs to event frame attributes.
You can map the output as static (doesn't save history) or PI point (saves history) attribute. When mapping to PI point attribute, make sure that it is mapped back to the attribute on the asset.
-
-
Optional. If you specified an example element, click Evaluate to verify that output values of individual expressions.
-
Optional. Generate a root cause event frame for every event frame that the analysis generates.
A root cause event frame captures asset data, which can help you analyze conditions just before the start of the event frame.
Note: Outputs from root cause event frames are only written to static attributes.
-
From the Advanced Event Frame Settings window, select Generate child root cause event frame before parent event frame starts.
-
In the Duration field, enter the length of the root cause event frame.
The root cause event frame starts this long before the generated parent event.
-
-
Optional. Map a start trigger name and start trigger expression to an event frame attribute.
-
From the Advanced Event Frame Settings window, select Save start trigger name to event frame attribute and then select an attribute (template) or create a new attribute template on the event frame template to which the start trigger name is saved.
-
From the Advanced Event Frame Settings window, select Save start trigger expression to event frame attribute and then select an attribute (template) or create a new attribute template on the event frame template to which the start trigger expression is saved.
The start trigger name and start trigger expression can now be seen on generated event frames, on the selected attributes.
-
-
Specify scheduling for the analysis.See Analysis scheduling.
-
Optional. If you specified an example element, verify the analysis by reviewing the results produced with historical data:
-
In the analysis list, right-click the analysis and then click Preview Results.
-
Enter a start time and end time not later than the current time, and click Generate Results to see a list of results.
-
-
To apply changes and save your work locally, click
on the toolbar.
-
Click Check In on the toolbar to save the analysis template to the PI AF server and to create the analysis for any element based on the element template.