Result
Understand how to validate the processing of measures by the Flow engine by using the "Monitor" view in the Config tool
Tutorial steps
- Complete the Filler 1 Metric – create new tags and measures to complete the filler metric
- Deploy the entire Filler 1 Metric
- Launch the Flow "Monitor" view to monitor progress of the processing and backfilling process of the Flow engine
In this tutorial, you are going to complete the configuration of the "Filler 1" Metric. All measures are going to be hourly and associated with the "Filler 1 Run" Event.
Build the following measures, remembering to use tags:
Retrieved
Add a Retrieved Measure called "Bad Production (bottles)" using a Flow tag that references the Historian's "FL001.BottleCount.Reject" tag. Use the "Counter" aggregation method for the measure. Add the "Filler 1 Run" Event to its context.
Manually Entered
Add an Hourly Manually Entered Measure called "Rating (bottles)" for the design specification of the Filler. Add the "Filler 1 Run" Event to its context. Expand the "Retrieval" section and notice the additional option to be configured with the Initial Value:
Because an Event is associated with this Measure, Flow needs to know how the "Initial Value" property is used. The overlay of event periods onto time periods literally slices the time period into pieces. Flow wants to know whether each slice’s value is assigned to the initial value, or whether the whole time period’s value is assigned to the initial value, in which case the slices’ values will be assigned a proportional split of the time period’s value. For the "Rating (bottles)" measure, use "Split initial value over time slices".
Calculated
Add a Calculated Tag for "Total Production (bottles)" which is the sum of "Good Production (bottles)" and "Bad Production (bottles)". Create an Hourly Measure from this calculated tag. Remember to use the Counter aggregation type and not the default Average!
Add an Hourly Calculated Measure for "Efficiency (%)" which is the ratio of "Total Production (bottles)" to "Rating (bottles)". You can use the User Defined Function for "Efficiency" created earlier.
Add an Hourly Calculated Measure for "Quality (%)" which is the ratio of "Good Production (bottles)" to "Total Production (bottles)". You can use the User Defined Function for "Efficiency" created earlier.
Remember your Filler 1 Run event context for all the measures created above!
Aggregated
Add an Aggregated Measure for "Filler 1 Good Production DTD (bottles)". This is an hourly measure which will sum the "Filler 1 Good Production (bottles)" measure every hour, but "reset" every day. This will result in a DTD ("Day to Date") calculation. Drag the "Filler 1 Good Production (bottles)" measure from the Model View onto the "hourly" Flow Zone icon, not the "daily" icon. Rename the measure to "DTD". Set the Retrieval properties as follows:
Just before you deploy all your new measures, open the Flow Monitor from the View > Monitor main menu. Notice the top section for Measure processing is empty. This indicates that the Flow System is up to date.
Now right-click on the "Filler 1" Metric and select "Deploy".
Deploying the metric will deploy all of its measures. Notice the Flow Monitor has a number of hourly measures’ time periods to process. Hover your cursor over the bars to see what each one represents. You should notice the bars starting to drop (including a rough rate calculation). When there are no bars remaining in the Measures section, Flow is up to date again.
A note about the Event bars - if you have events that are open-ended, they will be displayed with a value indicating the number of hours for which they have been open.