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:
- Copies the records that come before the one selected by the mouse for the temporary historic (including the selected record).
- Adds the new record to the temporary historic.
- Copies the records that come after the one selected by the mouse for the temporary historic.
- Erases all records from the main historic.
- Copies the whole temporary historic to the main historic.
- 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.