Jump to content

Create condition with capsules ending 1 minute after transition


Recommended Posts

Question from user: 

I’d like to create a capsule defined as follows: When a valve transition from closed to open (this data (pi tag) is a string). I’d like the capsule to be limited to the first minute after the valve transition occurs.

Answer:

Use this equation in Formula tool:

$open = $a ~= "Open" //create condition when the valve is open, a is your valve signal 
$open.afterStart(1min) //Create a condition with capsules ending 1mins after start of $open

It will give result as shown in screenshot attached.

 

image-20220610-073429.png

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...