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
  2. Update any default modules to be used for python tags to key:
    DefaultModuleImports
  3. Create the necessary registry entries required to run the collector. Following is sample registry file path:
    C:\Program Files (x86)\GE Digital\Historian Python Collector\Server\PythonSampleCollector.reg
    Tip: You can double-click the file to add the required registry entries to run the collector. Update HistorianNodeName and InterfaceName as required prior to adding the registry entries.

What to do next

Add sample tags, which you can copy and modify based on your requirement.