Overview of the Python Collector

Using the Python collector, you can execute Python scripts and store the resulting values in Historian tags. You can retrieve this data from the Historian archive, perform the calculations written in Python script, and store the resulting values in new Historian tags. Also, you can run multiple Python scripts simultaneously.

Note: You can use the Python Collector either Configuration Hub or Historian Administrator. However, for a seamless usage and experience, it is recommended to use the Python collector in Configuration Hub.
Features:
  • You can perform data calculations on values that are already in the archiver.
  • You can run the Python-based scripts to compute values.
  • You can retrieve the resulting values stored in Historian using any of the Historian clients.
  • You can run multiple Python scripts at the same time.
  • You can verify a Python script and check for errors before executing it.
  • The supported timestamp resolution is 1ms.
  • Each tag can have its own Python script stored under the tag source address. The computed value for the Result variable within the Python script is stored in the associated Python tag.
  • Both the polled and unsolicited data collection are supported.
  • Integer, string and other data types are supported. For more information, refer to Supported Data Types.
  • The collector accepts device timestamps.
  • The collector reads data and tags.
Limitations:
  • Historian tags used in the CurrentValue function cannot contain % in the tag name. For example, CurrentValue(‘Simulation.Sin_1%Noise’) will result in an error. Therefore, before using a tag in a Python script, rename it so that it does not contain %.