zaky Posted August 16 Share Posted August 16 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 Link to comment Share on other sites More sharing options...
Thorsten Vogt Posted August 16 Share Posted August 16 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 Link to comment Share on other sites More sharing options...
Seeq Team Solution Ben Johnson Posted August 16 Seeq Team Solution Share Posted August 16 (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 August 16 by Ben Johnson 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now