Views API /getTagData2 Null Values reported on <Extended> Good quality Tags
I have noticed that when querying a tag using /getTagData2 in Canary Views, when a tag has an extended timestamp in the historian, it is returned with the extended quality code, but a null value. Is this expected? It would seem like the extended quality should be maintained, but with the previous value field as shown in historian views.
3 replies
-
Hi ,
What version of Canary is running? I can somewhat reproduce what you're explaining but not exactly. In my call, I'm retrieving raw data and using the includeBounds parameter. When I do that, I get the time-extended value with its corresponding time-extended quality. My null value appears after this because I'm using an endTime of "now" and the Historian does not have a value at or beyond this timestamp. Here is my call and response:
If I set "includeBounds" to false, it doesn't return either the time-extended value or the null.
-
Do they just need the last value or do they need a range of values? If they just need the last value, then you don't need to pass in a "startTime" and "endTime" at all and it will return the last value. You wouldn't get a null value in this case. By default, it will return the time-extended value and timestamp unless you pass in the "useTimeExtension" or "quality" parameter.