2 of 2 people found this helpful
Yes, if you want to do it with one request, you should use PI Web API Batch. PI Web API 2016 is the first version which has Batch not in CTP. Please refer to the following blog posts about the BATCH:
- PI Web API 2015 R3 - New features demo (Batch and Channels) - C#
- Optimizing web applications using PI Web API Batch
You can find more information about your request to get the average values in the page below:
It always good to refer to:
Please let us know if this helps you!
For a Wind project I built I embedded the 10 Minute Averages into the AF Structure - they were pre-calculated by AF Analytics and weren't a rolling average.
e.g. \\AF\Database\Company\Renewables\Wind Farm\Turbines\Turbine1\Weather Station|Wind Speed|10 Minute Average
Then I rolled up (via AF Analysis Roll Up) the average 10 minutes to the Turbines Element for the wind farm. I repeated this for a few other properties that were interesting at the Wind Farm level.
e.g. \\AF\Database\Company\Renewables\Wind Farm\Turbines|Wind Speed 10 Minute Average
Then you only need one call to the Turbines 10 Minute Average attribute.