# 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

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

##### 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:

Regards,

Thorsten

##### 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") ```

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
• 1