Combining multiple discrete tags into one
This tip shows how to combine several discrete tags into one. The new tag will always show the latest value if one tag changes and the others do not.
Create a new tag that looks for a change in any one of the discrete tags that should be combined. The formula can be extended accordingly if more than 2 tags are to be encompassed.
Formula:
if(tagA <> tagA_lag, tagA, if(tagB <> tagB_lag, tagB, if(tagC <> tagC_lag, tagC, if(tagD <> tagD_lag, tagD, sqrt(-1)))))
Variable mapping:
TagA = 1st discrete Tag (no shift)
TagA_lag = 1st discrete Tag (shift: 1s)
Same for TagB, TagB_lag, TagC, TagC_lag, TagD and TagD_lag
|
|