C# Function to Retrive PI values for a Tag

Discussion created by jorgewong on Oct 10, 2014
Latest reply on Oct 20, 2014 by jorgewong





I need to create a method in C# to use for a web service I'm building to retrieve the last 10 values for a given tag.  What is the best method to go about doing this.  I'm looking to leverage the PI AF SDK.


Eg. SQL I need to run:




SELECT top 10 *
FROM [piarchive].[picomp2]
WHERE tag = 'sinusoid'
order by time desc