Jump to content

How to splice calculated signal during condition 1 & signal's last value during condition 1-inverse?


Recommended Posts

  • Seeq Team

Problem statement:

I created an average temperature signal during Condition 1 which is the signal of interest (Orange signal). I want a signal that display the average temperature signal until the next Condition 1 capsule starts (Green condition). During the inverse of Condition 1 (Magenta condition), I would like the signal to show the last value of temperature signal last at the end of Condition 1. 
 

Step 1: Display the required signal an conditions as per problem statement. 

image.thumb.png.8956e7761efdf6222a14c2e125694139.png

 

Step 2: Enter the following formula in the formula editor and hit Execute. 

((0.tosignal()).splice($AvgTStg1,$Condition1)).splice($Temperature.aggregate(endValue(), 
$Condition1.removeLongerThan(40h), endKey()).tostep(),$Cond1Inverse)

image.thumb.png.1b663a5d0f32a44c3172c7ca18751a35.png

 

Result:

Cursor #1: Average temperature during Condition 1

Cursor #2: Temperature value at the end of Condition 1 during Condition 1 - Inverse

image.thumb.png.df7dc7a1316a5db6213b7f37ae04e5ae.png

 

Edited by Christopher Chin
Link to comment
Share on other sites

  • Christopher Chin changed the title to How to splice calculated signal during condition 1 & signal's last value during condition 1-inverse?

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