AnsweredAssumed Answered

PIPoint.UpdateValues behaviour

Question asked by ovenyg on Dec 17, 2019
Latest reply on Dec 19, 2019 by Dan Fishman



We are using the DoNotBuffer option when writing data. In this test, AFValues is a list of 100 float values. Just for this test, I query the recorded values right after the update. In most cases the recValues object will contain less than 100 records, like 95-99.


var timeRange = new AFTimeRange("T-1d", "T");

AFErrors<AFValue> errors = piPoint.UpdateValues(values, AFUpdateOption.Replace, AFBufferOption.DoNotBuffer);
var recValues = piPoint.RecordedValues(timeRange, AFBoundaryType.Inside, null, true, 0);


If I insert a Thread.Sleep(1000) between UpdateValues and RecordedValues get back 100 records.


So my question is why this is and how to deal with it? When is the data for sure "written" to the Data Archive?