Jump to content

Ignore Short Gaps of Composite Conditions


Go to solution Solved by Patrick,

Recommended Posts

Posted

I am trying to create a Composite Condition with the Intersection of two other conditions, however I would like to ignore short capsules which are created during transient conditions. Is there a way to ignore short capsules for composite conditions as there is for simple Value Search Conditions?

SEEQ2.jpg

SEEQ1.jpg

  • Seeq Team
  • Solution
Posted (edited)

Hi EPH - We don't have the capability to remove short Capsules in a Composite Condition via the GUI, however, it can be done easily in formula like so:

($a.intersect($b))
.removeShorterThan(1h)

where $a and $b are the respective conditions and the parameter in removeshorterthan() specifies the minimum capsule duration (above example, anything shorter than 1 hour will be ignored).

If you already have the Composite Condition set up, go to "Item Properties" (green i), click the down arrow next to "Duplicate", and select "Duplicate to Formula".  This will pre-populate $a.intersect($b) with your signals in Formula, and you can then append ".removeShorterThan(1h)" to create the new condition that ignores short capsules.

 

Edited by Patrick

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...