next up previous contents
Next: ESDProxy Up: Contributed Servers Previous: Contributed Servers   Contents

BasicXDAServer

This simple server does not retrieve data from other resources, instead the OPC item data can be directly defined in the server.

Listing 13 shows the code of a server that is based on the BasicXDAServer class:

language=C
\begin{lstlisting}[caption={PyOPC server based on the class
BasicXDAServer}
,l...
...r(ItemName='sample_float',
Value=96.43,
QualityField='good'))
\end{lstlisting}

This server defines two OPC items, which can then be accessed by OPC XML-DA clients.



Hermann Himmelbauer 2006-11-07