Writing an OPC client with Python ?
pl.leroy at free.fr
Fri Mar 3 22:03:31 CET 2006
Larry Bates a écrit :
> pierlau wrote:
>>I use an OPC server for connection to DC Drive.
>>I would like to write a small OPC client.
>>I have the dll OPCDAAuto.dll which contains all class and method but I
>>wonder if its possible to instance in python the class that are in the dll ?
>>Thanks for your help .
> You can call methods/functions in a .dll using ctypes.
> -Larry Bates
I have tried with ctypes.
I acheived to load the library
it works when I use following instructions :
print windll.OPCDAAuto or print cdll.OPCDAAuto
(i see an handle number)
But I can't run the functions?
I there a way to 'see' the inside of the dll
(i.e. to list the methods) ?
More information about the Python-list