AnsweredAssumed Answered

How can I get the values of Tables created in PIAF using AF SDK

Question asked by LucasCorrea on Apr 17, 2015
Latest reply on Apr 17, 2015 by LucasCorrea


I am creating a Windows Services using PI SDK and AF SDK (C# Programming) to monitor the events of some PIPoints of the PI Server (I am using EventPipe method). According with the name of the PIPoint, I need to associate some values for variables in my solution.


At first, I plan create an app.config file with the values that I need to associate the variables but, before doing this, I was thinking use a PIAF Table and I would like to know how can I get the values of the tables created in PI AF (Library --> Tables) using AF SDK. It is possible? If it’s possible, I think that is a better solution.


For example: If the PIPoint name is W01, I need associate the values to the variables 1, 2 and 3 in my code.

2015-04-17 11_59_12-bhz3004a - Conexão de Área de Trabalho Remota.png


I appreciate an example of code to show how this can be done in a C# console app.

Thanks in advance.