Jump to content

Intersect heating


Go to solution Solved by Ben Johnson,

Recommended Posts

I have 8 heaters and I want to identify on any of intersected heating process

image.png.81aebc86cb562aaf22661130207b7ccb.png

 

I want to only display the intersected capsules.

$a = $p21h ~= "-1"
$b = $p22h ~= "-1"
$c = $p3hs ~= "-1"
$d = $p51h ~= "-1"
$e = $p52h ~= "-1"
$f = $p6hs ~= "-1"
$g = $p7hs ~= "-1"
$h = $p8hs ~= "-1"

$a.combineWith($b).combineWith($c).combineWith($d).combineWith($e).combineWith($f).combineWith($g).combineWith($h)

 

here's my formula, only to identify based on strings, and combine it.

 

any suggestion?

 

note, each heater can work in any intersect.

the goal is to capture a "Simultan" heating

 

need help

 

Link to comment
Share on other sites

Hi zaky,

instead of combining the conditions you could create a numeric signal for each heater that is either 0 or 1 depending on the state. Then you can simply sum them to search for periods where this signal is greater 1. Here is an example based on the Example data Asset Tree from Seeq:
image.png.52c1a7de95eeaaa7a01c5b01362019c7.png

 

image.png.ce02470de2bb923184f2f7b7bda4d6a6.png

Regards,

Thorsten

Link to comment
Share on other sites

  • Seeq Team
  • Solution
Posted (edited)

The "splice" is going to add unnecessary overhead. The synonym for intersection is "or", so something like 

($p21h ~= "-1") OR 
($p22h ~= "-1") OR
($p3hs ~= "-1") OR
($p51h ~= "-1") OR
($p52h ~= "-1") OR
($p6hs ~= "-1") OR
($p7hs ~= "-1") OR
($p8hs ~= "-1") 

is  your most most performant answer.

The signal representing the count of overlaps also has a more concise solution:

countOverlaps(1h, 
 $p21h ~= "-1",
 $p22h ~= "-1",
 $p3hs ~= "-1",
 $p51h ~= "-1",
 $p52h ~= "-1",
 $p6hs ~= "-1",
 $p7hs ~= "-1",
 $p8hs ~= "-1") 

With the "1h" saying you want a signal with a sample at least every hour to keep the interpolation flowing efficiently. That signal lets you find the condition when a minimum quantity of the  conditions are met, eg 

$countedConditions > 3

 

Edited by Ben Johnson
  • Like 1
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...