By default atvise historian will store the tags only when new value arrives, however it might be necesary to store data base on cyclic timing sometimes.
To do this it will be necesary to implement a simple script and do the following steps.
- Make sure the tags you want to store are in a Folder in the "Objects" area:
- You will need to configure the nodes to Historize data as usual.
- Once the data is being Historized please downdload the script attached in this article. I looks like this, it is a text file.
- In atvise builder go to Library - Project - Script Library and create a new Script (name it as desired).
- Open the script and paste the script you downloaded
- You will need to modify one setting, at "var Carpeta = new UaNode ("AGENT.OBJECTS.Historicos"); you will need to replace it with the name of your folder like "AGENT.OBJECTS.YOURFOLDER".
- Save it.
- Once done you will need to create an Interval Trigger with the time you desire your data will be stored.
- And set up the timing interval, for example this interval will store the data every 10 seconds
- Once done, save your script and now your data sould be getting stored on Data Change and on the Interval.
- To test your data right click on any node and select "Query History"
- From there you will be able to select your time ranges and see your stored data
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article