AnsweredAssumed Answered

AF SDK Get All Attribute Values for All Elements in a Specified TimeRange

Question asked by XMPro_Gavin on Jul 4, 2016
Latest reply on Jul 5, 2016 by Marcos Vainer Loeff

Hi ,

 

I am new to OSI Soft and AF SDK .

 

I used PIIntegrator to connect to a Database and read all attributes for all elements of a specific Time . Created a Asset View for a Specific Template and pushed all attribute values to SQL  using PIIntegrator .

 

I am working on the same using AF SDK but not able to find out the exact API's to call

 

The Scenario I am trying to do is :

1) Connect to a PI Server

2) Connect to  a PI Database

3) Find All Elements of a Specific Element Template

4) Get Values of all the attributes for all the elements between a time range.

 

I am able to achieve Steps 1 , 2 and 3 . I am using AF SDK .NET 4.6 . I came to know from community that I can use AFListData , PIPoint to get the values of all attributes . But these methods / classes are available only in .Net 4 .

 

Could you guide me / provide me a sample example using AF SDK 2.80.7444 and .NET 4.6 to retrieve all attribute values for a specific element template elements between a time range .

 

Thanks for your help ,

Please let us know if you require more information.

Outcomes