Hi,

I am stuck on this part of my analysis. Maybe someone can help me with that.

Here is what i am doing: PrevVal ('Tag1','*')<>'Tag2'

So Would like to know the last time that expression is true.

Thanks!

Hi,

I am stuck on this part of my analysis. Maybe someone can help me with that.

Here is what i am doing: PrevVal ('Tag1','*')<>'Tag2'

So Would like to know the last time that expression is true.

Thanks!

- 2 people found this helpful
If you just need the time, evaluate Tag1<>Tag2. If true, write the timestamp to a PI Point in your analysis..

Other solution i can think of is a two-step approach:

- Evaluate the expression, and save the output to a PI Point. This will be e.g. the true/false output of a natural-scheduled analysis Tag1<>Tag2
- Then use FindEq to find the last time this was True: https://livelibrary.osisoft.com/LiveLibrary/content/en/server-v11/GUID-D9CA39DC-818B-433B-9BE4-497493E0095F

Hi Anta

if you are comparing two tags having similar timestamps then

if ( (’Tag1’) <>(‘Tag2’)) then Timestamp(‘Tag1’) else NoOutput()

Thanks,

Lal