I am trying to compare data from two different PI servers. Please advise on a smarter way to go about it instead of using datalink and processbook.
Hello Fatima. Why are you seeking to compare data between servers? How many tags? Over how long of a timerange? What is the data path such that it would allow there to be different data on different servers?
For a few tags over a limited timerange DataLink is going to be the best tool for the job. If you're looking to do a broader comparison things can get complicated quite quickly.
Here is PI SDK code, and you should be able to use similar code using AF SDK with LINQ (AF SDK is recommended over PI SDK since the below post was published): How to compare PIValues Objects.
How to compare PIValues Objects.
Another approach that discusses soft comparisons: https://pisquare.osisoft.com/message/18059#comment-18059
The are other ways such as performing aggregates such as the time weighted averages and seeing if the values are within some range of one another. I have a few other ideas, but I would need to know more about what your end goals are.
Retrieving data ...