Recording Events to a Historic

<< Click to Display Table of Contents >>

 

Recording Events to a Historic

The most common usage for 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 (its ScanTIme property set to zero) and no dead band (its DeadBand property set to zero).

2.Link TimeStamp properties and values of a 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 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?