How to historize tags base on time and not data change

Created by Vester Business Support Team, Modified on Thu, 21 Oct, 2021 at 4:38 PM by Vester Business Support Team

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.


  1. Make sure the tags you want to store are in a Folder in the "Objects" area:

  2. You will need to configure the nodes to Historize data as usual.
  3. Once the data is being Historized please downdload the script attached in this article.  I looks like this, it is a text file.
  4. In atvise builder go to Library - Project - Script Library and create a new Script (name it as desired).
  5. Open the script and paste the script you downloaded
  6. 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".
  7. Save it.
  8. Once done you will need to create an Interval Trigger with the time you desire your data will be stored.
  9. And set up the timing interval, for example this interval will store the data every 10 seconds
  10. Once done, save your script and now your data sould be getting stored on Data Change and on the Interval.
  11. To test your data right click on any node and select "Query History" 
  12. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article