Ted Williams Posted November 20, 2018 Share Posted November 20, 2018 Hello Seeq, Is there a way to loop over the values of a signal in the Formula Tool editor? Thanks, Ted Williams Link to comment Share on other sites More sharing options...
Seeq Team John Cox Posted November 20, 2018 Seeq Team Share Posted November 20, 2018 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. John Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.