Hi
I am trying to access historical value of a tag (value about a minute ago)
(and subtract it from value now, to get the difference).
I am getting error ‘uncertain initial value’.
Here is my tag editor - script.
endTime = system.date.now()
startTime = system.date.addMinutes(endTime, -1)
paths = [‘[default]History/building_h/Boiler_Gas_Flow_Accum’]
dataSet = system.tag.queryTagHistory(paths = paths, startDate = startTime, endDate = endTime, returnSize = 1, aggregationMode = “LastValue”, returnFormat = “Wide”)
May be my paths is not in correct syntax, I am unable to refer to an example of the correct path…
If someone has done anything similar to this, please let me know.
Thanks in advance.