Victor Posted July 12, 2022 Posted July 12, 2022 Hello, I'm trying to create a formula and for that I need include only period when drive work. Drive Load - 1st signal (ex. $DLC ) Drive work - 2nd signal (ex. $DWC two possible option ACTIVE/INACTIVE) 1) Created a Capsule ($C) which analyze $DWC on ACTIVE. How can I filtrate $DLC, what I need to do is leave only those periods when $DWC is ACTIVE Can I do it with .keep operator? Trying to do it according to this Quote Seeq Version R22.0.46 introduces the .keep() Formula operator for filtering a condition based on capsule properties. In the original post, the following Formula was used to generate a new condition that only has capsules where the Value property is equal to OFF: Prior to R22.0.46: $condition.filter($capsule-> $capsule.getProperty('Value').isEqualTo('OFF') With Seeq Version 22.0.46, the same result is achieved using the simpler keep() function syntax: Version R22.0.46 and later $condition.keep('Value', isEqualTo('Stage 1')) Quote $signal.keep( $sample -> $sample.value() != 'T4A') $DLC.keep($capsule.....)? Must be easy to done, but I can't figure it out.
Thorsten Vogt Posted July 12, 2022 Posted July 12, 2022 Hi Victor, you can use within() for that: Regards, Thorsten
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