Hi Robin,
I would use a Seeq formula similar to the one below, with the Can Weight signal and your existing Can Production capsules as inputs. The key functions used are aggregate(), periods(), and inside(). Note that you could also do the std deviation calculation using Signal from Condition, using a condition created in Formula with: periods(10min,1min).inside($CanProductionCapsules).
$CanWeightSignal
.aggregate(stdDev(), // std deviation statistic
periods(10min,1min).inside($CanProductionCapsules), // do the calc over 10 min rolling window every minute
// but only for 10 minute capsules fully inside CanProduction capsules
endKey() // place the calculation result at the end of the 10 minute window
, 0s) // max interpolation between data points, use 0s if you want discrete result
Hope this helps!
John