Add Sample Tags

Before you begin

Install the collector.

About this task

You can add sample tags so that you can create additional copies of tags or update tag calculation using Historian Administrator.

Procedure

Use the following command to add sample tags:
C:\Program Files (x86)\GE Digital\Historian Python Collector\Server\ihPythonCollector.exe 
noservice REG=PythonSampleCollector ADDTAGS
REG points to the collector instance registry key that you have created.

What to do next

  1. Copy the sample tags and modify the Python script as per your requirement. Ensure that you set the value that is stored in the archiver to Result in the script. For example, suppose you have the following calculation:
    x=CurrentValue('Tag1') 
    y=CurrentValue('Tag2') 
    if x > y: 
    Result= x 
    else: 
    Result= y
    The resulting tag stores the greater value between the current values of Tag1 and Tag2.
  2. Run the collector.