Install the Python Collector
Before you begin
- Install the Historian server and collectors.
- Install Python 3.8 on the same machine on which you have installed collectors.
Procedure
-
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
- In the following location, include the path to the Python install lib
folder:
-
Update any default modules to be used for python tags to key:
DefaultModuleImports
-
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. UpdateHistorianNodeName
andInterfaceName
as required prior to adding the registry entries.