Jump to content

FOR (loop) Statements in Seeq

Ted Williams

Recommended Posts

  • Seeq Team

Hi Ted,

In the Seeq Formula editor, the transform() and filter() functions provide ways to loop over all the samples in a signal as well as all the capsules in a condition.

For example, a 2 sample running average of a signal can be calculated as shown here, by looping over each sample in the Temperature signal:



Giving this result:



As an example of looping over all the capsules in a condition, high temperature capsules lasting longer than 4 hours can be identified with this formula:



As shown in the trend view, only the temperature excursions longer than 4 hours are included in the “Extended High T Periods” condition:



I hope these examples are helpful! Please let me know if you have further questions.




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...