Install the Python Collector

Before you begin

  1. Install the Historian server and collectors.
  2. Install Python 3.8 on the same machine on which you have installed collectors.

Procedure

  1. Add the following entries to update the Python collector’s registry:
    • In the following location, include the path to the Python install lib folder:

      Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GE Digital\iHistorian\CollectorServiceExtensions\PythonExpressions\PythonPath

    • In addition, add the path to the Python 3.8 lib folder or any custom modules to Python path. This path can also include location of any custom modules or functions (global functions or variables to be used from within the python tag calculation/script).

      Examples:

      C:\Program Files (x86)\GE Digital\Historian Python Expressions\Python38\lib

      C:\Program Files (x86)\GE Digital\Historian Python Expressions\Python38\user

      C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\Lib

      C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\Lib\site-packages

      C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\DLLs

    You can also configure Python library path using Configuration Hub. For more information, refer to Configure Python Library path using Configuration Hub.
  2. Update any default modules to be used for python tags to key:
    DefaultModuleImports

What to do next

Add a Python Collector Instance, either using Configuration Hub or RemoteCollectorConfigurator.