1 of 1 people found this helpful
You can do this in DataLink by adding a filter expression to the compressed data function such as:
'Tag'<20 and prevval('Tag','*')>20
This means that it will return every time the tag falls below the limit (20 in this example). Here are some results for sinusoid:
If you want to return the times when the tag falls both below and above the limit, you can use a filter expression such as:
('Tag'<20 and prevval('Tag','*')>20) or ('Tag'>20 and prevval('Tag','*')<20)
Let me know how this works and if you have additional questions.
I totally remember this now... I remember doing that in classes 8-10 years ago, I just didn't remember it.
Works like a champ. Just what I needed.
Thanks for the quick response.