In this video we'll go through what the different analysis statuses are as well
as the scheduling options available and how to use the preview and evaluate features.
On the analysis tab we have a start and stop button at the top. We have the option
of creating a new analysis by either clicking this button in the top left
or by right-clicking into the white space underneath our existing analyses. All the
way to the left of our existing analyses we have the opportunity to see what the status
of the analysis is. Next to the status indicates whether the analysis is part of a template or not.
Here are a summary of the statuses that you may see. Most of these are self-explanatory
but you want to make sure that you pay attention to the warnings and errors. Errors indicate a more
serious issue where warnings might be something that you'll need to resolve but may not limit
the actual function of the analysis itself. In order to troubleshoot your analyses hover over
your analysis and see what the dialog box pops up with. This will give you a good indication as
to why there is an error warning associated with your analysis and we recommend that you resolve
all errors and warnings to make sure that your analyses run as smoothly as possible. Let's take
a look over at PI System Explorer to see how we can schedule our analyses and a few other options
In this analysis I can see my scheduling options at the bottom. By default it is set
to event triggered and it is set to trigger on any input. If I expand the list here I can see
that the only input that it will trigger on is the flow rate. Looking into my logic of
the analysis I can see that the flow rate is the only attribute that my analysis is
configured for. However if I had additional attributes I would see them in this drop-down
list and I could select which ones I would like to trigger off of if they are updated.
Another option for scheduling is to select periodic. If I select periodic,
by default I'll have a period of 5 minutes. In my case I'll configure this to be using the hours,
minutes and seconds. I would like my analysis to be run every single minute and I would also
like it to be run 30 seconds past the minute. We can see below, the example evaluation times,
this will ensure that my analysis is running at the times that I wanted to. I can use the
evaluate button to see what the example analysis will output. In this case I have
a value at evaluation which is the value at the time that I click the evaluate button,
as well as the value at last trigger, which we can see below corresponds to the last
time that this would be triggered, which would be 30 seconds past the last minute.
The evaluate button will help you make sure that your results make sense and if you want to see
more detailed results you can right-click on the analysis and choose the preview results button.
Here we're able to put in a time period or take a look at the last hour and we can see the outputs
as well as the inputs for the last hour at the time the analysis was run. We can see the trigger
times are at 30 seconds past the minute and they're updating every single minute and we can
see what the flow rate attribute showed at that time, as well as the total flow attribute output.
If we want to take a deeper look at these results we can export them to a
CSV file and view them in programs like Excel. Additionally, we have the option to change how
our output timestamp is generated. If I click on the advanced button below,
I can see that I have the trigger time as a default for the output timestamp or the
execution time. The execution time may differ from the trigger time, because intensive calculations
may not occur instantaneously. We also have the option to output relative to a trigger time.
I can output into the future for instance and I'll be warned here indicating that a future PI
point must be created and that I'll allow the PI analysis service to create this future PI point.
In the Advanced Options we also have the option to opt in for automatic recalculation;
so this means if out of order events come in we are able to recalculate the specific trigger time
that would have been affected by those results. My last step is to check in this analysis and
I can look on the attributes pane to make sure that my dates were taken and that the analysis
is updating on the period that I scheduled it for. We can see here that the time stamp shows
five minutes in the future and that everything was occurring at 30 seconds past the minute.
Therefore we've successfully scheduled our analysis to run as we want and we also made
it run in the future which could be useful if you're trying to set a forecast or some
predicted value. In the next video, we'll show how we can templatize our analyses.
This will allow us to roll out our analyses onto multiple assets at
once which will be essential when you're working with a large scale of equipment.