On a few different occasions I have run into a strange quality code on my historical data.
The code is 1,073,742,080 (1073742080).
In a related forum thread I found.
Indeed the hex value of 1073742080 is 4000 0100
and the hex value of 256 is 0100
so this is arguably a value of 256 (uncertain) with one higher order bit set.
While I don't know exactly why I am getting this quality code my more pressing need is how to eliminate these apparently "uncertain" values from inclusion results a tag history query (system.tag.queryTagHistory). The function does have a ignoreBadQuality
parameter but when this is set True
is does not filter out the Uncertain
quality values.
Is there a way to filter the uncertain quality values as part of the tag history query?
I have custom aggregation functions to find the change in a counter value between intervals and the erroneous values are messing up the algorithm.