Allison Buenemann Posted July 1, 2019 Share Posted July 1, 2019 (edited) I've got a signal with drop-outs and I want to filter my signal to only visualize samples with values above a threshold. Is there a quick way to do this in Seeq? Edited December 1, 2023 by Mark Pietryka Separating question and answer for thread 1 Link to comment Share on other sites More sharing options...
Administrators Solution Teddy Posted July 2, 2019 Administrators Solution Share Posted July 2, 2019 (edited) The simplest method for filtering a signal to only view samples with values above a threshold is to use the .remove() function coupled with a numeric value comparison in formula. Example formula: Resulting signal: Another method is to use the .remove() function in combination with a condition. This gives some added flexibility to further customize the condition you are removing data during vs just removing data under a certain threshold. Example using .grow() to increase the duration of the condition that data is being removed during: Resulting signal: Depending on interpolation of the data, you could also consider using the .within() function. Check out the following post that explains the differences of working with .remove() and .within(): Content Verified DEC2023 Edited December 1, 2023 by Mark Pietryka Separating question from answer in Allison's original post. Consolidating most up-to-date answer in this post. Link to comment Share on other sites More sharing options...
Pat Dixon Posted May 3, 2021 Share Posted May 3, 2021 This is not working for me. Remove is not removing data, it is keeping the last value. This messes up formulas. Link to comment Share on other sites More sharing options...
Seeq Team Joe Reckamp Posted May 3, 2021 Seeq Team Share Posted May 3, 2021 Hi Pat, You will need to make sure that the maximum interpolation is less than the data being removed or else the data will be interpolated through the gaps. You can set the maximum interpolation in the formula as well by adding a .setmaxinterpolation(<time>) at the end. 1 Link to comment Share on other sites More sharing options...
Pat Dixon Posted May 3, 2021 Share Posted May 3, 2021 That helped, thanks. Would it make sense to have a trim or clamp function to make this easier? All I want to do is to remove data outside of a range, and it seems you have to go pretty deep to get that to work Link to comment Share on other sites More sharing options...
Thorsten Vogt Posted May 3, 2021 Share Posted May 3, 2021 Hi Pat, you may use within() fo this. The following example keeps only the portions of the signal where the value of the signal is above 65: Regards, Thorsten 2 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