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:

TRunAvgFormula.JPG.982441e9b7908719fb34a34f52d24912.JPG

 

Giving this result:

TAvgTrend.thumb.JPG.44aa781938ac6cdc929b168a012c82e5.JPG

 

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:

CapsuleDurationLoop.JPG.2daa5d3ed12159c63ff6b0f4e72845e2.JPG

 

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

HighTTrends.thumb.JPG.2b7680f67eda60ba7e890c9b652c0e06.JPG

 

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

John

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...