Before installing the PyOPC framework, the following three software packages have to be installed:
Installation instructions for the above software packages should be available at the given websites.
PyOPC does currently not have an installer but is nevertheless relatively easy to install. At first the PyOPC package has to be decompressed. Then Python has to be informed where to find it. This is done by adding the location of the PyOPC variable to the environment variable PYTHONPATH.
If everything is installed correctly, the next step may be to test the installation. PyOPC contains extensive unit tests in the subdirectory ``test''. These tests can either be run altogether by executing ``runtests.sh'' or selectively via the ``trial'' command from the Twisted framework. Hopefully, all tests will pass5.
If all goes well, PyOPC is ready to use. As a quickstart, an existing OPC XML-DA server may be queried directly from python such as shown in listing 16.
language=C