I would like to ask if is it possible to get given count of last values from archive using PI SDK. I found this functionality in SMT under Data -> Archive Editor. You can provide either start time and end time or start time and event count. I'm able to retrieve recorded values through recordedValues function using start time and end time. But I'm not able to provide event count functionality. For this purpose there is another function? Or can I provide some filter expression as parameter of recordedValues method?