In another thread, someone mentioned using the IPICalcuate API to return an array of data at equally spaced time intervals where the value at each time step was the last recorded value.
I thought I understood what was required but I can't seem to get it to work. Started from the IPICalculate example on the web site.
Here is the code snippet
Set ipiCalc = server
Period = "10m"
expr1 = "TagVal('" & tagnm & "','*')"
Set vals1 = ipiCalc.Calculate(StartDate, EndDate, expr1, PISDK.SampleTypeConstants.stInterval, Period, Null)
I think the problem is with expr1 but haven't been able to figure it out