<DIV>... I forgot to attach the code. here it is. Thanks.</DIV> <DIV> </DIV> <DIV>Jeff<BR><BR><B><I>Graham Bloice <graham.bloice@trihedral.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Jeff Peery wrote:<BR>> thanks for the beta!<BR>> <BR>> I think my main problem is that I don't really understand this code; I<BR>> didn't write it. Could you recommend a book/website that describes<BR>> what these functions like 'group.OPCItems.AddItem' do? For example,<BR>> how do I know what a 'group' is or what the addItem() parameters are,<BR>> or how to interpret that error code that you interpreted, and I'm not<BR>> really sure if this code will work for other OPC servers other than<BR>> the automation direct server.<BR>> <BR>> Also, where might I go learn about how to setup the event handler for<BR>> a data change event?<BR>> <BR>> Thanks again, I
appreciate your help!<BR>> Jeff<BR>> <BR>The canonical definition of the OPC Automation interface API is the OPC<BR>DA Auto 2.02 Specification. DA stands for Data Acquisition. The<BR>originators of this document are the OPC Foundation, at<BR>http://www.opcfoundation.org, and the specification is *so* open you<BR>have to become a member to download it (at a cost of USD 1500). Grrr.<BR><BR>However, if your Google fu is up to it you might find a copy lying<BR>around elsewhere, as I have run across it on several OPC Vendors sites. <BR>I think I've also found it with several OPC Servers. I would recommend<BR>that you get the Matrikon OPC Simulation server for testing, this<BR>installs the Matrikon OPC Explorer which is a useful client app to work<BR>out what's happening when your client doesn't work. This might give you<BR>the docs. The document goes under various names such as opcda20_auto.doc.<BR><BR>Note that the docs are VB (VB6) based, but not too difficult to
convert<BR>to python.<BR><BR>You will also want to read up on creating event handlers in PyWin<BR><BR>-- <BR>Regards,<BR><BR>Graham Bloice<BR><BR></BLOCKQUOTE><BR><p> 
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a>