Creating a custom data reference to query time series data

Discussion created by catronro on Jan 17, 2013
Latest reply on Jan 22, 2013 by skwan

I want to create a custom data reference for AF.


My objective is to create a query that will return time series data from a sql database so that users can look at non pi values right along side pi values in the pi client tools.


I believe this should be relatively easy, but my company has never done anything like this. i think there is some kind of gotcha where you have to account for something like 4 different ways the pi clients want time series data (instantaneous value, time series, etc).


I looked at the AFWhitepaper on creating a data reference but it does not show an example where time series data is being returned.


Does anyone have a code sample they would be willing to share.


We are running AF 2012