3 of 3 people found this helpful
Just to make sure, you want to return the max value within a passed time range? Is your filter purely for finding the maximum or for something else?
For PI SDK, you can use a Summary method such as PIData.Summary() and for summaryType, choose the enumeration astMaximum.
For AF SDK, you can use a Summary method such as
and for summaryType, choose AFSummaryTypes.Maximum.
The benefit of these calls is that only the timestamp, max value pair is returned to the client, as the processing is done server-side.
Let me know if this suffices or were there other requirements I missed.
That's exactly what I'm looking for, thank you! I've not used that method before.
2 of 2 people found this helpful
The filter expression is basically the Performance Equation syntax and you'll have the PEReference.chm file on your machine with the syntax documented.
Very helpful to my second question, thank you!