Jump to content

Calculate the Offset Between Signal Peaks


Recommended Posts

  • Administrators

Use Case Background

In this Use case, we have 2 signals: Signal 1 and Signal 2.  We'd like to use Seeq to calculate the offset (in time) of the peaks in the two signals.  The following steps can be used to perform this calculation.

image.png

 

Analysis Steps

1. Use the Value Search tool to create a condition for the peaks.

image.png

 

2. Use the Signal from Condition tool (twice) to calculate the maximum value of each signal during the Peaks condition.  Be sure to place the timestamp of the statistic at the point of maximum value.

image.png

 

3. Finally, use the following syntax in Formula to calculate the offset between each set of peaks.  The result of this Formula is a new time series signal with a sample reporting the offset for each pair of peaks.

image.png

image.png

  • Like 1
Link to comment
Share on other sites

  • Seeq Team

Alternative Solution

If you already have conditions with capsules that start (or end) at the peak max then you can use a Composite Condition followed by Signal from Condition. Here is how...

1. Use Composite Condition to join the two capsules. In this example the capsules start at the peak max so the join will be inclusive of A but not inclusive of B.

image.png

2. Use Signal from Condition to calculate the duration of the Peak-to-Peak capsules.

image.png

  • Like 1
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...