IsaacNZ Posted October 6, 2020 Share Posted October 6, 2020 Hi all, Trying to make a lot of comparisons to sense check a large amount of data, for instance is the flow signal flat lined when greater than 0m3/s? At the moment I am doing the following: Creating a derivative of the flow signal to know whether or not it is flat lined Carrying out a value search for when flow is > 0 Doing another value search for flow derivative = 0 Finally a composite condition to see when both value searches So I'm wondering if there is a simpler/faster way of achieving the same result in fewer steps as I will be needing to do this a lot. Thanks! Link to comment Share on other sites More sharing options...
Seeq Team Joe Reckamp Posted October 6, 2020 Seeq Team Share Posted October 6, 2020 Hi Isaac, While it's technically the same steps, you could do this all in one Formula with: $signal > 0 and $signal.derivative() == 0 Note that in versions below 49, you will replace "and" with "&&" in the above formula. 2 Link to comment Share on other sites More sharing options...
IsaacNZ Posted October 7, 2020 Author Share Posted October 7, 2020 Ah thanks so much this is exactly what I was after! I was using "and" instead of "&&" when trying this earlier. Cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now