Re: [python-win32] problem accessing OPC clients from thread

2008-01-22 Thread Tim Roberts
caxelrud wrote: > Hi, > I need some help on OPC and Python (using makepy and Matrikon simulator). > I am getting an error when trying to AddItem. > The error is: > The item definition doesn't conform to the server's syntax. > OPC_E_INVALIDITEMID 0xC0040008L > > Any idea ? > Thanks > Here the code:

Re: [python-win32] problem accessing OPC clients from thread

2008-01-22 Thread caxelrud
Hi, I need some help on OPC and Python (using makepy and Matrikon simulator). I am getting an error when trying to AddItem. The error is: The item definition doesn't conform to the server's syntax. OPC_E_INVALIDITEMID 0xC0040008L Any idea ? Thanks Here the code: >>> import win32com.client >>> op

Re: [python-win32] problem accessing OPC clients from thread

2007-12-13 Thread Jeff Peery
I forgot to attach the code. here it is. Thanks. Jeff Graham Bloice <[EMAIL PROTECTED]> wrote: Jeff Peery wrote: > thanks for the beta! > > I think my main problem is that I don't really understand this code; I > didn't write it. Could you recommend a book/website that describes > wh

Re: [python-win32] problem accessing OPC clients from thread

2007-12-13 Thread Jeff Peery
Hello, I've gotten my OPC client to work well under a multi threaded wxApp. Now I am trying to create a single threaded App because, from what I've learned from users on this list, it is a simpler and cleaner way to do ththings. I've setup a test script that allows me to catch DataChange

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Tim Roberts
Jeff Peery wrote: > > > > If I have a multithreaded application but use COM objects only within > the secondary thread is pythoncom.CoInitialize() still required? > Every thread that will use COM services has to have run CoInitialize at some point. Pythoncom will automatically do a CoInitalize,

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Jeff Peery
: Tim Roberts <[EMAIL PROTECTED]> Subject: Re: [python-win32] problem accessing OPC clients from thread To: Python-Win32 List Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=UTF-8 Jeff Peery wrote: > > Graham, > > thanks for the beta! I think my

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Tim Roberts
Jeff Peery wrote: > > Graham, > > thanks for the beta! I think my main problem is that I don’t really > understand this code; I didn’t write it. Could you recommend a > book/website that describes what these functions like > ‘group.OPCItems.AddItem’ do? For example I don’t really know what a > ‘gro

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Jeff Peery
thanks for the beta! I think my main problem is that I don't really understand this code; I didn't write it. Could you recommend a book/website that describes what these functions like 'group.OPCItems.AddItem' do? For example, how do I know what a 'group' is or what the addItem() parame

Re: [python-win32] problem accessing OPC clients from thread (Graham Bloice)

2007-12-03 Thread Jeff Peery
a data change event? Thanks again, I appreciate your help! Jeff Message: 1 Date: Mon, 03 Dec 2007 10:21:35 + From: Graham Bloice <[EMAIL PROTECTED]> Subject: Re: [python-win32] problem accessing OPC clients from thread To: python-win32@python.org Message-ID: <[EMAIL PROTEC

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Graham Bloice
Jeff Peery wrote: > Hello, > I'm getting in a bit over my head here and need some help. I'm running > a simple wxpython application that runs a thread in the background. > The thread is supposed to read and write data to/from an OPC server - > which I use to communicate to a PLC (programmable logic

[python-win32] problem accessing OPC clients from thread

2007-12-01 Thread Jeff Peery
Hello, I'm getting in a bit over my head here and need some help. I'm running a simple wxpython application that runs a thread in the background. The thread is supposed to read and write data to/from an OPC server - which I use to communicate to a PLC (programmable logic controller, for proces