I am trying to use an event frame to record the duration that an analog PIPoint is below a certain threshold value. I just assign the PIPoint to a variable using TagVal() - and it seems to correctly interpolate for the start trigger ( X < Y) for the start time of the event frame. But it does not put the end time of the event frame at the time the interpolated variable exceeds the end trigger - it ends the event frame at the time of the first stored value which exceeds the end trigger.... so it reports an incorrect duration below the threshold.
This is particularly problematical when backfilling.
I have done this before on systems where there is a source digital tag indication of above / below a threshold - that is fine because the time of changes in the stored digital value is the actual start or end time. It is not possible to do that here as we are interested in durations above or below varying (user selected) threshold values.
AF server version is 2.10.9.593
Thanks