Question:
How can I set up data to be recorded in a Historic only in special events (such as when a tag changes value, or when a button is pressed), and not to be recorded via scan?
How can I set up data to be recorded in a Historic only in special events (such as when a tag changes value, or when a button is pressed), and not to be recorded via scan?
Solution:
To do so, you must first disable all the Historic’s options.
Then, at the desired event (tag’s OnValueChange, button’s Click, etc.), run the Historic’s WriteRecord() function. This causes a record with the value of all tags set up in this object to be inserted in the Historic.