Sophie Posted May 2, 2023 Share Posted May 2, 2023 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? Link to comment Share on other sites More sharing options...
Thorsten Vogt Posted May 2, 2023 Share Posted May 2, 2023 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. 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. Regards, Thorsten Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now