Last report on model change / screen work from yesterday.
The ALSwatch script has always been just looking at the EPICS output of the CARM and DARM filter banks, and if it saw a single saturation, it would run the down script. This was non-ideal because (a) the EPICS channels aren't the real signals, and (b) sometimes we'll hit the rails briefly and that's okay - we want to shut things down only when we're constantly saturating.
It turns out that there was a pre-existing saturation monitor part in CDS_PARTS, which I have used. There is one each looking at the output of the CARM and DARM filter banks. The threshold for what saturation means is set as an epics input. The part outputs a running count (number of saturations since the last time it was not saturated, resets each time it goes non-saturating) and a total number since the last reset (also an epics input).
(To be continued... still writing)