system.tag.queryTagHistory

Can’t seem to get the interval to work. The range and everything else works except for the interval.

[code]sqldata = [‘jt 1/extag’]

intmin = event.source.parent.getComponent(‘Container’).getComponent(‘Numeric Text Field’).intValue

print intmin

data = system.tag.queryTagHistory(paths = sqldata,startDate = event.source.parent.getComponent(‘Calendar’).latchedDate,endDate = event.source.parent.getComponent(‘Calendar’).date,returnSize = 0, intervalHours = 0, intervalMinutes = intmin)
event.source.parent.getComponent(‘Table’).data = data
[/code]

It seems there is some ambiguity in your queryTagHistory parameters, as returnSize = 0 means return all data, and intervalMinutes = 10 means returns data every 10 minutes. You have to use one or the other. So if you remove the returnSize parameter from the script, it should function properly.

Thanks, it works now.