#!/bin/bash
#
# Used by Klystron History "Clear" button
# Example: clearKlysAllAVpvs LI26
#
caput -t SBST:$1:1:PHASHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:PJTNHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:AMPLHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:AJTNHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:KPHRHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:GOLDHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:PDESHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:TDLYHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:PERVHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:SDLYHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:PMDLHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:VACTHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:BIASHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:GLASSMANHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:HV_MONTRHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:SCREENHSTBPLOT 0 > /dev/null
caput -t SBST:$1:1:PH_N-1_NHSTBPLOT 0 > /dev/null
#
for unit in 11 21 31 41 51 61 71 81; do
  caput -t KLYS:$1:$unit:PHASHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:PJTNHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:AMPLHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:AJTNHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:KPHRHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:GOLDHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:PDESHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:TDLYHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:PERVHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:BCURHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:BVLTHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:BVJTHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:KVACHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:FEPKHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:REPKHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:WVACHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:ENLDHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:KDTHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:DRVRHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:DRPKHSTBPLOT 0 > /dev/null
  caput -t KLYS:$1:$unit:FMONHSTBPLOT 0 > /dev/null
done
#
