OPC,  Python

OpenOPC Python

OpenOPC for Python

http://openopc.sourceforge.net/

OpenOPC for Python is a free, open source OPC (OLE for Process Control) toolkit designed for use with the popular Python programming language.
Because the OpenOPC library implements a minimal number of Python functions which may be chained together in a variety of ways, the library is simple to learn and easy to remember.
OpenOPC works with both Windows and non-Windows platforms. It has been tested with Windows, Linux, and Mac OS X.
OpenOPC allows OPC calls to be chained together in an elegant, functional programming style. For example, you can read the values of all items matching a wildcard pattern using a single line of Python code!

 

It was a bit tricky to get it to work, I will post the detail later.

pip freeze:

OpenOPC-Python3x==1.2.2
Pyro4==4.71
pywin32==221
serpent==1.24
Files for this setup:
Code:
And the result with Matrikon.OPC.Simulation.1 running a virtualenv named opc:
Comments Off on OpenOPC Python