Python scripts can be run but require some additional ActiveX components to be installed.

Pulsonix scripting with Python

Use the following procedure to activate the Python scripting mechanism:

  1. Download Python v2.7.x 64 bit
  2. Download PyWin32 64 bit
  3. Add your Python install location and Python scripts to your PATH environment variable. E.g. C:\Python27 and C:\Python27\scripts
  4. In cmd, navigate to C:\Python27_x64\Lib\site-packages\win32comext\axscript\client and run pyscript.py. Make sure to change framework.py to the updated Pulsonix version before running pyscript.py. Framework.py has been altered to remove fatal errors when using Python scripts. This script can be obtained by requesting it from your local Pulsonix support centre.
  5. Run c:\python27\scripts\pywin32_postinstall.py (using cmd you can cd to the scripts directory and type Python pywin32_postinstall.py -install)
  6. To double check if Python has been registered correctly as an ActiveX script engine, open the registry editor (Regedit) and check that HKEY_CLASSES_ROOT\Python\CurVer or HKEY_CLASSES_ROOT\Python.File\ScriptEngine is Python.AxScript.2
  7. At this point you should be able to go into Pulsonix and run a Python script.

Scripting Overview | Editing Scripts | Scripting Reference | Running Scripts From Command Line