Add Sample Tags
Before you begin
About this task
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
- 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:
The resulting tag stores the greater value between the current values of Tag1 and Tag2.x=CurrentValue('Tag1') y=CurrentValue('Tag2') if x > y: Result= x else: Result= y
- Run the collector.