Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

The Tag Historian Query provides a simple way to query data from Tag Historians. In the Tag Historian Query you can collect data from Historical tags Tags for specific date ranges, apply aggregates, and specify the sample size. It functions the same as a Tag History Binding and uses the same interface, so check out that page for more information on the individual properties.Image Removed

Image Added



On_this_page



Scroll HTML Exporter Ignore


Iulink
URLhttps://www.inductiveuniversity.com/video/tag-historian-query
NameTag Historian Query

 



Using Parameters in a Tag History Query

The only difference between a Tag History Binding and the Tag History Query is when using indirection. In the Tag History Query, indirection is inserted directly into the Tag Path in the Selected Historical Tags section.

Assume we have a parameter named StationNumber:

Image Modified


Indirection is typically done using a parameter which like the rest of reporting, is the name of the parameter enclosed in { }. In the example below, I

have

substituted the parameter 'StationNumber' into my Tag Path for the number of the station

.

Image Removed

 

Scroll HTML Exporter Ignore
Iulink
URLhttps://www.inductiveuniversity.com/video/tag-historian-query
NameTag Historian Query

 

 . Note that you need to manually type out the name of the parameter, including exact spelling and capitalization. 

Assuming base Tag Paths like the following:
[/.default]station 1/paint pressure
[/.default]station 1/paint fill level

we can replace the "1" with a reference to StationNumber:
[/.default]station {StationNumber}/paint pressure,
[/.default]station {StationNumber}/paint fill level


Image Added