Hello, does anyone have a good reference for read/write functions for PI to Python and how to use a standard PI interface to achieve this?
Can you clarify what you mean by PI Interface? Interfaces are typically used to get data from things like OPC servers, text files, etc. Do access data using a programming language, you would typically use one of the following options:
There is not a complete library that we offer, but here is some references that can help you get started.
If using Python on Windows you can use the pythonnet module as described in this blog post: PI and Python? PIthon! This will allow you to use PI AF SDK's method directly from Python.
If you are on different platforms or are familiar with REST APIs, you may use PI Web API as described in this blog post: Using PI Web API with Python
I was thinking of PI AF and PIOLEDB also as "interfaces". We have these and the PI OPC interface on site. We use PIAF to interface with SQL databases via the linked Tables so I was seeing that as an interface method. So I think with the info you have provided we can make a start. we have a UNI student building neural networks with matrix algebra who wants to extract PI data on the run analyses it and then use PI notifications to inform the engineers of plant status. But he believes he needs to do this in python rather than directly within say PI AF analyses.
Using PI Web API with Python
Retrieving data ...