Recording Events to a Historic

<< Click to Display Table of Contents >>

 

Recording Events to a Historic

The most common usage for I/O Tags reported by events is to store returned events to a Historic object. To do so, follow these steps:

1.Create a Historic object with its scan time disabled, that is, its ScanTime property set to 0 (zero), and no dead band, that is, its DeadBand property set to 0 (zero).

2.Link TimeStamp properties and values of an I/O Tag to this Historic. Other properties can be linked too, in case it is important to store them.

3.Use Historic's WriteRecord method on I/O Tag's OnRead event.

 

This procedure ensures that every received value reported by event is stored sequentially on a linked Historic.

Was this page useful?