<br><font size=2 face="sans-serif">Hello all!</font>
<br>
<br><font size=2 face="sans-serif">I am trying to use the OSISoft PI (Plant
Information) API to collect data about processes within our facility, however,
when I try to connect to the PI server using their API calls, I get the
following error"</font>
<br>
<br><font size=2 face="sans-serif">>>> from ctypes import *</font>
<br><font size=2 face="sans-serif">>>> PiAPI=windll.piapi32</font>
<br><font size=2 face="sans-serif">>>> valid = 0</font>
<br><font size=2 face="sans-serif">>>> status = PiAPI.piut_setservernode(servername)</font>
<br><font size=2 face="sans-serif">>>> status = pi.piut_login("pidemo",
"dorazio", valid)</font>
<br><font size=2 face="sans-serif">Traceback (most recent call last):</font>
<br><font size=2 face="sans-serif"> File "<pyshell#10>",
line 1, in ?</font>
<br><font size=2 face="sans-serif"> status = pi.piut_login("pidemo",
"dorazio", valid)</font>
<br><font size=2 face="sans-serif">WindowsError: exception: access violation
writing 0x00000000</font>
<br>
<br>
<br><font size=2 face="sans-serif">I THINK this means we are not licensed
to make API calls against this dll, but I am not sure.</font>
<br>
<br><font size=2 face="sans-serif">If anyone can translate the error message,
I would be grateful.</font>
<br>
<br><font size=2 face="sans-serif">Eric</font>
<br>
<br><font size=2 face="sans-serif">Eric B. Powell<br>
BSRI<br>
Electronic Aids<br>
(803)208-6691<br>
</font>