AnsweredAssumed Answered

FindEQ Equivalent in AF SDK

Question asked by jmoretti on Jun 22, 2020
Latest reply on Jun 23, 2020 by jmoretti

I am trying to find the last time an AFAttribute was a particular value.  For example, my asset is a tank and the Attribute is the level.  I want to go back a fixed amount of time and find the last timestamp the level was the value it is now.  In my drawing below, t2 and v2 are the known timestamp and value while I'm trying to find t0, where v2 = v0.  The level is a PI Point in my example and Step is OFF (interpolation is ON).

 

With AF Analyses and Performance Equations, FindEQ works great.  Something like FindEQ('Level', '(t2 - 1s)', '(some long time ago)', v2) would work.  With AF SDK, I'm having trouble finding an equivalent functionality.  I am compiling against the AF SDK in AF Client 2018 SP3.  I'd like to be able to use versions as old as 2017 R2 but this is not a firm requirement and can upgrade if a newer version gives me what I need.

 

I'd rather not workaround by creating an Analysis that does the FindEQ logic for me.  Does anybody have any ideas?

 

 

Outcomes