KB-34756: Inserting records in the middle of the historic.

Question:

Can I insert a record in the middle of a historic?

Solution:

Yes. To do so, create a temporary historic, and then create a script that executes the following commands:

  1. Copies the records that come before the one selected by the mouse for the temporary historic (including the selected record).
  2. Adds the new record to the temporary historic.
  3. Copies the records that come after the one selected by the mouse for the temporary historic.
  4. Erases all records from the main historic.
  5. Copies the whole temporary historic to the main historic.
  6. Erases all records in the temporary historic, leaving it ready for the next insertion.

NOTE:
Attached to this article is a demo application that illustrates the procedures above, developed with Elipse SCADA
v. 2.29 b. 095.

Attachments:

Sample.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *