How do I write an expression such that I want the current time stamp when a condition I true but no result (no time stamp) when it is false . I tried the expression below
While the result is correct when the statement is true, the result when the condition is false is the same as when the condition is true. But I do not want any thing written when it is false.
When the "wellstatus" condition is met the result is 03/02/2018 15:00:00, it also giving the same result when the condition is not met i.e 03/02/2018 15:00:00.
Any ideas on how I can fix this?
Let's start with the most obvious: Is the Wellstatus a Boolean variable to your expression? Is the output attribute a PI point configured as Timestamp? (The attribute would be DateTime but the tag would be Timestamp.)
Retrieving data ...