Jump to content

How to return the duration of a 'signal from condition' in the SEEQ formula function?


Recommended Posts

Hi,

I am trying to get the duration of a capsule (specified as a value search from a signal) and multiply it by a scalar. I was going to use the duration function but this is returning an error message. Do you know how I can return the duration of a capsule?

4a3d47a1-be07-4558-adac-429d21f4fb3f.jpg.47194d617cfc7fd08eb787b3c5d4a9b5.jpg

 

Link to comment
Share on other sites

Hi Sophie, 

the function duration() can only be applied on capsules, not on conditions. You can calculate the duration for each capsule of the condition using the "Signal from Condition" tool. The resulting value can be used within a formula to multiply it by a scalar as you intended. 
image.thumb.png.22bff7b1b43cbf36aa8bf5c72a93d54d.pngimage.png.6eb8eeae01ce42dfe7146e553d288ae2.png

When using the "Signal from condition" Tool you can always have a look at the formula the tool is creating in the background or duplicate it to a formula that you may use for further calculations. This is a good starting point for the more advanced use of the formula language.
image.thumb.png.6ceb233eff1ac201db14b165e3ed12ae.png

Regards,

Thorsten

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