Brief description of what we are trying to do:
- On gateway timer we have our calculation script running twice a second.
- Calculation runs and 300 tags are written using ‘system.tag.writeAll()’
- Same values are written to a ‘.csv’ file
- finally we perform ‘system.tag.scan()’ to force a historical scan
We export the historical data using ‘system.tag.queryTagHistory()’ and ‘system.dataset.exportExcel()’. When we exported the historical data and compare with the ‘.csv’ file we get differences. At least in out minds these two files should be the same.
I think that the tags are not being update fast enough before the historical scan occurs. But I doubt writing to 300 tags will take longer then 100ms.
Since I am writing to the memory tags via timer does the scanclass (under general properties) of tag properties matter? (how does scan evaluation work?)
Is there a way to measure how long system.tag.writeAll() takes to complete all the tags?