Specifications

Python
A-3
••••••••
1 INTRODUCTION
You can configure EDE to use Python scripts. The purpose of integrating
the Python interpreter with EDE is to control EDE or external applications
by using Python scripts. This is useful to connect multiple CrossView Pro
debuggers with arbitrary third-party tools, like Matlab, RiMC or Consystant.
2 INSTALLATION AND CONFIGURATION
In order to use Python with EDE you must have the Python 2.0 interpreter
installed. If you want to use COM, for example to control Matlab, you
must also install the Win32 extensions.
Follow these steps to install and add Python to EDE:
1. Install the Python 2.0 interpreter. You can use the Python 2.0 installation
program beopen-python-2.exe in the bin\python directory of your
product.
If you want to use COM, also install the Win32 extensions. You can use
the installation program win32all-135-py20-compatible.exe in the
bin\python directory.
2. One loadable DLL (cwpythoni.dll) is necessary to use Python with
EDE. To enable this DLL, select Customize | Libraries and select
Python Extension Language. If the Python interpreter is not present
in the predefined libraries list, Browse for a User Defined Library named
"cwpythoni.dll".
If the Output Window is not already showing, select it from the Window
menu. You should then see a Python tab on the Output Window. This
window acts as a virtual console for the Python interpreter; that is, it
replaces stdin, stdout and stderr in UNIX parlance.
2.1 POPUP MENU
If you right-click on the Python tab a Python popup menu appears that
offers various options for the Python language.
Clear
W
indow
Erases the contents of the Python Output Window.