I’m retrieving values using the GetPIArchiveDataAsync method. Fixed dates are sent in parameter (same start and end date) since the sought values are entered manually at... fixed dates. Everything’s fine except if I’m asking for values that have not been entered yet. Instead of receiving nothing, PI returns the closer value (the last available).
Here’s the context. This is for a page where users have to manually enter values at fixed intervals, one value per quarter, thus four values per year. The page is displaying the values that have been entered for the past 3 quarters plus the current quarter. This one should be empty until it is filled by the user.
I’m building multiple requests, one for each quarter in this case. The RetrievalType is set to compressed and the Boundaries is set to inside, both being the default values. The returned values are fine except for the current quarter if it’s still empty. In that case PI repeats the previous quarter value so instead of showing a blank value the page is repeating the previous value, which is very bad in this case. So the question is, is there a way to prevent that behaviour?