Jump to content

Recommended Posts

Hello,

Using Seeq Tools, are there ways to easily calculate the change in value from one sample to the next, as well as the corresponding sample time?  These types of calculations can be useful in a variety of applications (e.g., tank fill/drain, irregularly spaced process samples, equipment status transitions, etc.).

Ted Williams

 

Link to comment
Share on other sites

  • Seeq Team

Hi Ted,

The answer is yes, there are! One of the easiest ways uses the Seeq Formula editor. The runningDelta() and interval() functions provide methods for calculating changes in sample values (and the actual sample time) from one sample to the next.

For example, the change in a tank level can be calculated using this approach:

DeltaFormula.JPG.b23991b7e69bef1f43f3c6c6a36d1648.JPG

 

Giving this result:

LevelTrend.thumb.JPG.d33bc6bc89568be03112d9be5ded9035.JPG

 

This next example demonstrates the interval() function for calculating the actual sample time for each sample in a signal. The sample time interpolation and units are modified to improve visualization:

SampleDTFormula.JPG.3034dc3aa67326759eaf33b618bd7f5d.JPG

 

With the results displayed for a process sample that is collected intermittently:

SampleAnalysisTrend.thumb.JPG.ac8bf63bbbb89ac22dde9b42cb959a2f.JPG

 

I hope this covers all the bases for your question, Ted! Please let me know if you have any follow-up questions.

John

 

 

 

 

Edited by John Cox
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
 Share

×
×
  • Create New...