KB-13174: Recording values in a Historic only in special events.

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?

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.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

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

,

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *