Julian Epps Posted January 26, 2021 Share Posted January 26, 2021 I have a step signal that is either always 0 or 1 (Boolean). I need to create a signal every time this value changes. Any tips to help me out here? Thanks in advance. Link to comment Share on other sites More sharing options...
Seeq Team Joe Reckamp Posted January 26, 2021 Seeq Team Share Posted January 26, 2021 (edited) Hi Julian, This Formula should do the trick: $signal.toCondition() Note, if you want just the time point where the change occurs, you could add another argument to shorten the time duration of each capsule: $signal.toCondition().afterstart(1s) Edited January 26, 2021 by Joe Reckamp 1 Link to comment Share on other sites More sharing options...
Julian Epps Posted January 26, 2021 Author Share Posted January 26, 2021 (edited) Thanks Joe! This gets me half way there. How would you recommend creating a condition that captures the time between step changes? Edited January 26, 2021 by Julian Epps Link to comment Share on other sites More sharing options...
Seeq Team Joe Reckamp Posted January 27, 2021 Seeq Team Share Posted January 27, 2021 Hi Julian, The first formula ($signal.toCondition()) will create a capsule the length of each time frame between step changes. From there, you can use Signal from Condition to calculate the "Total Duration" statistic for each of the capsules created (use the result of the formula for both the condition of interest and bounding condition). 2 1 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