Jump to content

Creating conditions based on the slope of a Signal


Recommended Posts

  • Seeq Team

FAQI want to create a condition where a trend is within a specific range of slope so as to identify instances where it falls inside and outside these ranges. Is this possible?

SolutionThis can be easily done using a combination of the Formula and Value Search tools in the sequence below.

  1. Use formula to calculate a new signal that is the derivative of the original signal. Formula code is:
    $signal.derivative()
    Note - if the original signal is step interpolated, the derivative returned may have infinite values. If it is step interpolated, it is best to first change the interpolation method to linear, then take the derivative. Formula code for this method is: $signal.toLinear().derivative()
  2. Use the value search tool on your new derivative signal to create a condition when your derivative is above or below a particular value, or in a specified range.
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...