Jump to content

Create condition with capsules ending 1 minute after transition

Recommended Posts

  • Seeq Team

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.


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.



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
  • Create New...