-
Posts
52 -
Joined
-
Last visited
-
Days Won
24
Community Answers
-
John Cox's post in Maximum value of multiple peaks for each step of stepwise signal was marked as the answer
Hello Learning_in_progress,
I have a few suggestions for you to try. After trying these suggestions, if you need additional help, please sign up for an upcoming Seeq Office Hours (link) where a Seeq analytics engineer can help with your remaining questions. Here are my suggestions:
1. Create a new signal which is the maximum of the blue and green signals, using this formula:
$signal1.max($signal2)
2. An easier way to create capsules for each change in the step signal is to use this formula, or the "Condition with Properties" tool located under Identify in Workbench:
$StepSignal.toCondition()
3. To get the maximum value of the 2 signals over each step capsule, use the result from suggestion #1 above as "MaxOfTwoSignals" in the formula shown below. Also, if you use durationKey() instead of maxKey() as shown below, you should get a result which matches with the original step signal.
$MaxOfTwoSignals.aggregate(maxValue(), $StepCapsules.removeLongerThan(5d), durationKey()).toStep()
-
John Cox's post in I would like to combine three signals in a running condition startvalue previous signal was marked as the answer
Hello,
This is the approach I suggest:
1. Create a new formula for "Weight of Bag Being Packed" using your existing 25kg, 50lb, and 46 lb conditions. I converted 25kg to lbs as the "default weight" but you can do this however is best, and use kg or lbs as desired (I used lbs):
// Default to 25 kg and substitute in other weights when those conditions are present
(55.12).splice(50,$FiftyLbCondition).splice(46,$FortySixLbCondition)
2. Calculate "Amount Packed" with a new formula, using the result from step 1:
// use .max(0) in case the bag counter ever resets
($BagCounterSignal.runningDelta().max(0))*$WeightBagBeingPacked
3. Calculate the "Daily Running Sum of Amount Packaged" with a new formula, using a daily condition and the result from step 2:
$AmountPacked.runningSum($DailyCondition)
-
John Cox's post in How can I beat this error? Samples must be ordered by their keys! was marked as the answer
Hi Ivan,
It's also possible that this is related to a software bug in version 61. This bug is fixed in future versions (starting in R64), but in the event you are falling victim to that same bug, here is a quick workaround you can try. It may or may not help, but is something you can try quickly. Basically you need to apply a .round(12) to each numeric signal used in the Formula, prior to the .setProperty functionality:
$rounded_co = $co.round(12) $rounded_o2 = $o2.round(12) $condition.setProperty('CO (minimum)', $rounded_co, minValue()) .setProperty('CO (maximum)', $rounded_co, maxValue()) .setProperty('O2 (minimum)', $rounded_o2, minValue()) .setProperty('O2 (maximum)', $rounded_o2, maxValue())