Hello, First time posting so please let me know if I am doing anything wrong.
I am trying to pull the history of a tag with intermittent data. There will be several seconds of readings; however, most of the time the reading is 0.
When I use the queryTagHistory function it will not include these spikes if I set the intervalMinutes too high (above 0.4). Does the function not sample all of the datapoints in the range to determine the maximum as the interval increases?
Example:
Returns the data correctly but with over 1,000,000 rows
system.tag.queryTagHistory(paths=tagPaths, columnNames = tagTitles, startDate=startTime, endDate=endTime, aggregationMode=“Maximum”, intervalMinutes=0.4, returnFormat=‘Wide’)
Returns the data incorrectly. All rows returning 0
system.tag.queryTagHistory(paths=tagPaths, columnNames = tagTitles, startDate=startTime, endDate=endTime, aggregationMode=“Maximum”, intervalMinutes=10, returnFormat=‘Wide’)