Jump to content

A capsule between two different capsules


Recommended Posts

Hi Javad Kondori, 

This can be achieved by using Composite Condition tools. Select combination method of Join. Please make sure you uncheck "Inclusive of A" and "Inclusive of B" in order to create capsule between A and B.
image.thumb.png.cffa88f33850234fcc224907872eaf34.png
 

You can also refer to this example on how to use composite condition with join function: 

https://www.seeq.org/index.php?/forums/topic/625-creating-a-condition-for-equipment-start-up/&do=findComment&comment=1105 

Hope this answer your question. 

Edited by Siti Tay
Link to comment
Share on other sites

Hi Siti Tay,
Thanks a lot for your help and answer,


There are two problems for using the Join with unchecking "Inclusive of A" and "Inclusive of B":
1- I have different size of capsules 1 hr to 5 hr. When I increase the amount of maximum capsule 
duration, Capsule C starts from capsule A that is one before the left side of C, see below:
image.png.6b3888c621dfbaa96566662bc40c2a99.png

A=amount of maximum capsule duration=2hr (I could not see a capsule between A1 and B1)
B=amount of maximum capsule duration=3hr (Now, Capsule C is incorrect)

I want something to join just two different capsules (A,B) before and after a capsule for any duration When capsule A is before B.



2-also in join, I have to select two different capsules, Sometimes I have to find capsule C between two capsules A when the duration is less than a certain amount.

Thanks again,

Javad

Link to comment
Share on other sites

Hi Javad, 

Here are the steps to get Condition C: 

Step 1: Create ''Condition C1'' by joining ''Condition A'' and ''Condition B'' using this formula :

$a.afterEnd(0ns).join($b.beforeStart(0ns), 40h, false)

 image.thumb.png.6e4b62c3fe0de069e3115ccf92135aa6.png

 

Step 2: Create ''Condition C2'' using inverse function in formula and specify the duration. For example 10 min. Only capsule shorter than 10 min will be returned. 

$conditionA.inverse().removeLongerThan(10min)

image.thumb.png.c2662bc788b2024bb168c3e61b610366.png

Step 3. Combine ''Condition C1'' and ''Condition C2'' using CombineWith function in formula

combineWith($C1, $C2)

image.thumb.png.3031c584ad8c82401f3bcb3b71b22b38.png

Let me know if this works. 

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...